diff options
author | Eric Anholt <[email protected]> | 2007-11-27 10:16:58 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-12-17 16:53:47 -0800 |
commit | 9a8819e7677cac709c681d8b16b717d069f205f2 (patch) | |
tree | ee518d2b4030b480c5f25cc4be78cea219b24e65 | |
parent | 146030aad2c41eb8303935a13333c93fdc7c4a58 (diff) |
[965] Add decode of 3DSTATE_DRAWING_RECTANGLE.
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_decode.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_decode.c b/src/mesa/drivers/dri/intel/intel_decode.c index a1a7ac9ffb0..74ceebad8b5 100644 --- a/src/mesa/drivers/dri/intel/intel_decode.c +++ b/src/mesa/drivers/dri/intel/intel_decode.c @@ -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"); |