diff mbox

[12/90] assembler: Rename gen5 DP pixel_scoreboard_clear to last_render_target

Message ID 1359991705-5254-13-git-send-email-damien.lespiau@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lespiau, Damien Feb. 4, 2013, 3:27 p.m. UTC
The purpose of this commit is to synchronize opcode definitions across
the gen4asm assembler and mesa.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 assembler/brw_structs.h |    4 ++--
 assembler/disasm.c      |    2 +-
 assembler/gram.y        |   16 ++++++++--------
 3 files changed, 11 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/assembler/brw_structs.h b/assembler/brw_structs.h
index 0e3c430..511c326 100644
--- a/assembler/brw_structs.h
+++ b/assembler/brw_structs.h
@@ -1368,7 +1368,7 @@  struct brw_instruction
       struct {
 	 GLuint binding_table_index:8;
 	 GLuint msg_control:3;
-	 GLuint pixel_scoreboard_clear:1;
+	 GLuint last_render_target:1;
 	 GLuint msg_type:3;    
 	 GLuint send_commit_msg:1;
 	 GLuint response_length:4;
@@ -1489,7 +1489,7 @@  struct brw_instruction
        struct {
            GLuint binding_table_index:8;
            GLuint msg_control:3;
-           GLuint pixel_scoreboard_clear:1;
+           GLuint last_render_target:1;
            GLuint msg_type:3;    
            GLuint send_commit_msg:1;
            GLuint pad0:3;
diff --git a/assembler/disasm.c b/assembler/disasm.c
index 1cb0924..6260a4e 100644
--- a/assembler/disasm.c
+++ b/assembler/disasm.c
@@ -854,7 +854,7 @@  int disasm (FILE *file, struct brw_instruction *inst)
 	case BRW_MESSAGE_TARGET_DATAPORT_WRITE:
 	    format (file, " (%d, %d, %d, %d)",
 		    inst->bits3.dp_write.binding_table_index,
-		    (inst->bits3.dp_write.pixel_scoreboard_clear << 3) |
+		    (inst->bits3.dp_write.last_render_target << 3) |
 		    inst->bits3.dp_write.msg_control,
 		    inst->bits3.dp_write.msg_type,
 		    inst->bits3.dp_write.send_commit_msg);
diff --git a/assembler/gram.y b/assembler/gram.y
index 538f8f7..f71f960 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -1307,7 +1307,7 @@  msgtarget:	NULL_TOKEN
                           BRW_MESSAGE_TARGET_DATAPORT_WRITE;
                       $$.bits3.generic_gen5.header_present = 1;
                       $$.bits3.dp_write_gen5.binding_table_index = $3;
-                      $$.bits3.dp_write_gen5.pixel_scoreboard_clear = ($5 & 0x8) >> 3;
+                      $$.bits3.dp_write_gen5.last_render_target = ($5 & 0x8) >> 3;
                       $$.bits3.dp_write_gen5.msg_control = $5 & 0x7;
                       $$.bits3.dp_write_gen5.msg_type = $7;
                       $$.bits3.dp_write_gen5.send_commit_msg = $9;
@@ -1316,10 +1316,10 @@  msgtarget:	NULL_TOKEN
                           BRW_MESSAGE_TARGET_DATAPORT_WRITE;
                       $$.bits3.dp_write.binding_table_index = $3;
                       /* The msg control field of brw_struct.h is split into
-                       * msg control and pixel_scoreboard_clear, even though
-                       * pixel_scoreboard_clear isn't common to all write messages.
+                       * msg control and last_render_target, even though
+                       * last_render_target isn't common to all write messages.
                        */
-                      $$.bits3.dp_write.pixel_scoreboard_clear = ($5 & 0x8) >> 3;
+                      $$.bits3.dp_write.last_render_target = ($5 & 0x8) >> 3;
                       $$.bits3.dp_write.msg_control = $5 & 0x7;
                       $$.bits3.dp_write.msg_type = $7;
                       $$.bits3.dp_write.send_commit_msg = $9;
@@ -1348,7 +1348,7 @@  msgtarget:	NULL_TOKEN
                           BRW_MESSAGE_TARGET_DATAPORT_WRITE;
                       $$.bits3.generic_gen5.header_present = ($11 != 0);
                       $$.bits3.dp_write_gen5.binding_table_index = $3;
-                      $$.bits3.dp_write_gen5.pixel_scoreboard_clear = ($5 & 0x8) >> 3;
+                      $$.bits3.dp_write_gen5.last_render_target = ($5 & 0x8) >> 3;
                       $$.bits3.dp_write_gen5.msg_control = $5 & 0x7;
                       $$.bits3.dp_write_gen5.msg_type = $7;
                       $$.bits3.dp_write_gen5.send_commit_msg = $9;
@@ -1357,10 +1357,10 @@  msgtarget:	NULL_TOKEN
                           BRW_MESSAGE_TARGET_DATAPORT_WRITE;
                       $$.bits3.dp_write.binding_table_index = $3;
                       /* The msg control field of brw_struct.h is split into
-                       * msg control and pixel_scoreboard_clear, even though
-                       * pixel_scoreboard_clear isn't common to all write messages.
+                       * msg control and last_render_target, even though
+                       * last_render_target isn't common to all write messages.
                        */
-                      $$.bits3.dp_write.pixel_scoreboard_clear = ($5 & 0x8) >> 3;
+                      $$.bits3.dp_write.last_render_target = ($5 & 0x8) >> 3;
                       $$.bits3.dp_write.msg_control = $5 & 0x7;
                       $$.bits3.dp_write.msg_type = $7;
                       $$.bits3.dp_write.send_commit_msg = $9;