From: Chris Wilson Date: Wed, 20 Jul 2011 19:39:56 +0000 (+0100) Subject: intel_decode: Handle a few gen7 blocks X-Git-Tag: 1.1~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30ffcc34ea6bae238671c042d718ae7f05853022;p=profile%2Fextras%2Fintel-gpu-tools.git intel_decode: Handle a few gen7 blocks --- diff --git a/tools/intel_decode.c b/tools/intel_decode.c index e132fdc..7200053 100644 --- a/tools/intel_decode.c +++ b/tools/intel_decode.c @@ -2048,7 +2048,12 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int data[1] & ~0x3f, ((data[1] & 0x3f) + 1) * 64); return len; case 0x6101: - if (IS_GEN6(devid)) + i = 0; + instr_out(data, hw_offset, 0, + "STATE_BASE_ADDRESS\n"); + i++; + + if (IS_GEN6(devid) || IS_GEN7(devid)) sba_len = 10; else if (IS_GEN5(devid)) sba_len = 8; @@ -2059,24 +2064,19 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int if (len != sba_len) BUFFER_FAIL(count, len, "STATE_BASE_ADDRESS"); - i = 0; - instr_out(data, hw_offset, 0, - "STATE_BASE_ADDRESS\n"); - i++; - state_base_out(data, hw_offset, i++, "general"); state_base_out(data, hw_offset, i++, "surface"); - if (IS_GEN6(devid)) + if (IS_GEN6(devid) || IS_GEN7(devid)) state_base_out(data, hw_offset, i++, "dynamic"); state_base_out(data, hw_offset, i++, "indirect"); - if (IS_GEN5(devid) || IS_GEN6(devid)) + if (IS_GEN5(devid) || IS_GEN6(devid) || IS_GEN7(devid)) state_base_out(data, hw_offset, i++, "instruction"); state_max_out(data, hw_offset, i++, "general"); - if (IS_GEN6(devid)) + if (IS_GEN6(devid) || IS_GEN7(devid)) state_max_out(data, hw_offset, i++, "dynamic"); state_max_out(data, hw_offset, i++, "indirect"); - if (IS_GEN5(devid) || IS_GEN6(devid)) + if (IS_GEN5(devid) || IS_GEN6(devid) || IS_GEN7(devid)) state_max_out(data, hw_offset, i++, "instruction"); return len;