[Intel-gfx] [PATCH 07/10] add support for data port read on Sandybridge

Xiang, Haihao haihao.xiang at intel.com
Sat Oct 9 09:32:27 CEST 2010


Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
 src/brw_structs.h |   12 ++++++++++++
 src/gram.y        |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/brw_structs.h b/src/brw_structs.h
index 6a29f37..9b1cd92 100644
--- a/src/brw_structs.h
+++ b/src/brw_structs.h
@@ -1400,6 +1400,18 @@ struct brw_instruction
 
        struct {
            GLuint binding_table_index:8;
+           GLuint msg_control:5;  
+           GLuint msg_type:3;  
+           GLuint pad0:3;
+           GLuint header_present:1;
+           GLuint response_length:5;
+           GLuint msg_length:4;
+           GLuint pad1:2;
+           GLuint end_of_thread:1;
+       } dp_read_gen6;
+
+       struct {
+           GLuint binding_table_index:8;
            GLuint msg_control:3;
            GLuint pixel_scoreboard_clear:1;
            GLuint msg_type:3;    
diff --git a/src/gram.y b/src/gram.y
index d536625..ffb0851 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -630,7 +630,14 @@ msgtarget:	NULL_TOKEN
 		| READ  LPAREN INTEGER COMMA INTEGER COMMA INTEGER COMMA
                 INTEGER RPAREN
 		{
-		  if (gen_level == 5) {
+		  if (gen_level == 6) {
+                      $$.bits2.send_gen5.sfid = 
+                          BRW_MESSAGE_TARGET_DATAPORT_READ;
+                      $$.bits3.generic_gen5.header_present = 1;
+                      $$.bits3.dp_read_gen6.binding_table_index = $3;
+                      $$.bits3.dp_read_gen6.msg_control = $7;
+                      $$.bits3.dp_read_gen6.msg_type = $9;
+		  } else if (gen_level == 5) {
                       $$.bits2.send_gen5.sfid = 
                           BRW_MESSAGE_TARGET_DATAPORT_READ;
                       $$.bits3.generic_gen5.header_present = 1;
-- 
1.7.0.4




More information about the Intel-gfx mailing list