[965] Add decode of 3DSTATE_DRAWING_RECTANGLE.
authorEric Anholt <eric@anholt.net>
Tue, 27 Nov 2007 18:16:58 +0000 (10:16 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Dec 2007 00:53:47 +0000 (16:53 -0800)
src/mesa/drivers/dri/intel/intel_decode.c

index a1a7ac9ffb0575cdf38446f72c688ab48d8b9584..74ceebad8b56a420e7addbb1061fc88785c069d3 100644 (file)
@@ -918,6 +918,26 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, int *failures)
 
        return len;
 
+    case 0x7900:
+       if (len != 4)
+           fprintf(out, "Bad count in 3DSTATE_DRAWING_RECTANGLE\n");
+       if (count < 4)
+           BUFFER_FAIL(count, len, "3DSTATE_DRAWING_RECTANGLE");
+
+       instr_out(data, hw_offset, 0,
+                 "3DSTATE_DRAWING_RECTANGLE\n");
+       instr_out(data, hw_offset, 1, "top left: %d,%d\n",
+                 data[1] & 0xffff,
+                 (data[1] >> 16) & 0xffff);
+       instr_out(data, hw_offset, 2, "bottom right: %d,%d\n",
+                 data[2] & 0xffff,
+                 (data[2] >> 16) & 0xffff);
+       instr_out(data, hw_offset, 3, "origin: %d,%d\n",
+                 (int)data[3] & 0xffff,
+                 ((int)data[3] >> 16) & 0xffff);
+
+       return len;
+
     case 0x7905:
        if (len != 5)
            fprintf(out, "Bad count in 3DSTATE_DEPTH_BUFFER\n");