diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-15 18:47:05 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:36 +0000 |
commit | 8fa561d4bbaec0ba0a4c9ccf2abe9131b893729a (patch) | |
tree | d38a4c90d2c8dc239533f5c6267ddb4fb3c03ff3 /assembler/brw_structs.h | |
parent | 1f1ad5974655a241bcf202bcd79a3e2d236bcc1c (diff) |
assembler: Rename dp_gen7 to gen7_dp and sync it with Mesa's
The purpose of this commit is to synchronize opcode definitions across
the gen4asm assembler and mesa.
I had to drop how mesa splits msg_control as the current assembly
language gives access the the whole msg_control field.
Recompiling the xorg and the intel driver of libva shaders doesn't show
any difference in the assembly created.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/brw_structs.h')
-rw-r--r-- | assembler/brw_structs.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/assembler/brw_structs.h b/assembler/brw_structs.h index e5710529..cfb3028c 100644 --- a/assembler/brw_structs.h +++ b/assembler/brw_structs.h @@ -1536,17 +1536,26 @@ struct brw_instruction GLuint end_of_thread:1; } gen6_dp; - struct { - GLuint binding_table_index:8; - GLuint msg_control:6; - GLuint msg_type:4; - GLuint category:1; - GLuint header_present:1; - GLuint response_length:5; - GLuint msg_length:4; - GLuint pad1:2; - GLuint end_of_thread:1; - } dp_gen7; + /** + * Message for any of the Gen7 Data Port caches. + * + * Most fields are defined in BSpec volume 5c.2 Data Port / Messages / + * Data Port Messages / Message Descriptor. Once again, "Slot Group + * Select" and "Last Render Target" are part of the 6-bit message + * control for Render Target Writes. + */ + struct { + GLuint binding_table_index:8; + GLuint msg_control:6; + GLuint msg_type:4; + GLuint category:1; + GLuint header_present:1; + GLuint response_length:5; + GLuint msg_length:4; + GLuint pad2:2; + GLuint end_of_thread:1; + } gen7_dp; + /** @} */ struct { GLuint opcode:1; |