mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 11:57:49 +00:00
GPU: Corrected the parameter documentation for the SetShader macro call.
Register 0xE24 is actually a macro that sets some shader parameters in the register structure. Macros are uploaded to the GPU at startup and have their own ISA, we'll probably write an interpreter for this in the future.
This commit is contained in:
parent
bed06310f2
commit
e3e0625ff7
2 changed files with 12 additions and 11 deletions
|
@ -139,9 +139,9 @@ public:
|
|||
INSERT_PADDING_WORDS(0x5D0);
|
||||
|
||||
struct {
|
||||
u32 shader_code_call;
|
||||
u32 shader_code_args;
|
||||
} shader_code;
|
||||
u32 set_shader_call;
|
||||
u32 set_shader_args;
|
||||
} set_shader;
|
||||
INSERT_PADDING_WORDS(0x10);
|
||||
};
|
||||
std::array<u32, NUM_REGS> reg_array;
|
||||
|
@ -154,8 +154,8 @@ public:
|
|||
struct ShaderInfo {
|
||||
Regs::ShaderType type;
|
||||
Regs::ShaderProgram program;
|
||||
GPUVAddr begin_address;
|
||||
GPUVAddr end_address;
|
||||
GPUVAddr address;
|
||||
GPUVAddr cb_address;
|
||||
};
|
||||
|
||||
std::array<ShaderInfo, Regs::MaxShaderProgram> shaders;
|
||||
|
@ -194,7 +194,7 @@ ASSERT_REG_POSITION(query, 0x6C0);
|
|||
ASSERT_REG_POSITION(vertex_array[0], 0x700);
|
||||
ASSERT_REG_POSITION(vertex_array_limit[0], 0x7C0);
|
||||
ASSERT_REG_POSITION(shader_config[0], 0x800);
|
||||
ASSERT_REG_POSITION(shader_code, 0xE24);
|
||||
ASSERT_REG_POSITION(set_shader, 0xE24);
|
||||
|
||||
#undef ASSERT_REG_POSITION
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue