Module: Mesa
Branch: master
Commit: 8a3f2eb9e6c830ff953751221961f2a6c8f76661
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a3f2eb9e6c830ff953751221961f2a6c8f76661

Author: Eric Anholt <[email protected]>
Date:   Thu Jul  8 13:01:57 2010 -0700

i965: Add disasm for SEND mlen/rlen on Sandybridge.

---

 src/mesa/drivers/dri/i965/brw_disasm.c  |    2 +-
 src/mesa/drivers/dri/i965/brw_structs.h |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c 
b/src/mesa/drivers/dri/i965/brw_disasm.c
index 3dbf4ad..23095d9 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -917,7 +917,7 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, 
int gen)
        }
        if (space)
            string (file, " ");
-       if (gen == 5) {
+       if (gen >= 5) {
           format (file, "mlen %d",
                   inst->bits3.generic_gen5.msg_length);
           format (file, " rlen %d",
diff --git a/src/mesa/drivers/dri/i965/brw_structs.h 
b/src/mesa/drivers/dri/i965/brw_structs.h
index 205d1b9..2fde42a 100644
--- a/src/mesa/drivers/dri/i965/brw_structs.h
+++ b/src/mesa/drivers/dri/i965/brw_structs.h
@@ -1686,7 +1686,7 @@ struct brw_instruction
       } dp_render_cache;
 
       struct {
-        GLuint pad:16;
+        GLuint function_control:16;
         GLuint response_length:4;
         GLuint msg_length:4;
         GLuint msg_target:4;
@@ -1694,8 +1694,9 @@ struct brw_instruction
         GLuint end_of_thread:1;
       } generic;
 
+      /* Of this struct, only end_of_thread is not present for gen6. */
       struct {
-        GLuint pad:19;
+        GLuint function_control:19;
         GLuint header_present:1;
         GLuint response_length:5;
         GLuint msg_length:4;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to