i965: Rename a few more commands to match the documentation.
This commit is contained in:
@@ -817,8 +817,8 @@
|
||||
#define CMD_PIPELINE_SELECT_965 0x6104
|
||||
#define CMD_PIPELINE_SELECT_GM45 0x6904
|
||||
|
||||
#define CMD_PIPELINED_STATE_POINTERS 0x7800
|
||||
#define CMD_BINDING_TABLE_PTRS 0x7801
|
||||
#define _3DSTATE_PIPELINED_POINTERS 0x7800
|
||||
#define _3DSTATE_BINDING_TABLE_POINTERS 0x7801
|
||||
# define GEN6_BINDING_TABLE_MODIFY_VS (1 << 8)
|
||||
# define GEN6_BINDING_TABLE_MODIFY_GS (1 << 9)
|
||||
# define GEN6_BINDING_TABLE_MODIFY_PS (1 << 12)
|
||||
|
||||
@@ -74,7 +74,7 @@ static void upload_binding_table_pointers(struct brw_context *brw)
|
||||
struct intel_context *intel = &brw->intel;
|
||||
|
||||
BEGIN_BATCH(6);
|
||||
OUT_BATCH(CMD_BINDING_TABLE_PTRS << 16 | (6 - 2));
|
||||
OUT_BATCH(_3DSTATE_BINDING_TABLE_POINTERS << 16 | (6 - 2));
|
||||
OUT_BATCH(brw->vs.bind_bo_offset);
|
||||
OUT_BATCH(0); /* gs */
|
||||
OUT_BATCH(0); /* clip */
|
||||
@@ -104,7 +104,7 @@ static void upload_gen6_binding_table_pointers(struct brw_context *brw)
|
||||
struct intel_context *intel = &brw->intel;
|
||||
|
||||
BEGIN_BATCH(4);
|
||||
OUT_BATCH(CMD_BINDING_TABLE_PTRS << 16 |
|
||||
OUT_BATCH(_3DSTATE_BINDING_TABLE_POINTERS << 16 |
|
||||
GEN6_BINDING_TABLE_MODIFY_VS |
|
||||
GEN6_BINDING_TABLE_MODIFY_GS |
|
||||
GEN6_BINDING_TABLE_MODIFY_PS |
|
||||
@@ -142,7 +142,7 @@ static void upload_pipelined_state_pointers(struct brw_context *brw )
|
||||
}
|
||||
|
||||
BEGIN_BATCH(7);
|
||||
OUT_BATCH(CMD_PIPELINED_STATE_POINTERS << 16 | (7 - 2));
|
||||
OUT_BATCH(_3DSTATE_PIPELINED_POINTERS << 16 | (7 - 2));
|
||||
OUT_RELOC(brw->vs.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
|
||||
if (brw->gs.prog_active)
|
||||
OUT_RELOC(brw->gs.state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user