diff options
author | Brian <[email protected]> | 2007-10-15 10:25:42 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-15 10:25:42 -0600 |
commit | 29db69e222b04b5a616942b06bd118c9ac75ec41 (patch) | |
tree | 815238bc516d14958b5fe0e86fbdc5fc9f32c7e7 /src/mesa | |
parent | e7af94416240f79ac609ff096690a1929664944e (diff) |
added print_texkil_op()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_debug_fp.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_debug_fp.c b/src/mesa/pipe/i915simple/i915_debug_fp.c index a108f1ad4f0..87fc3b2f9ac 100644 --- a/src/mesa/pipe/i915simple/i915_debug_fp.c +++ b/src/mesa/pipe/i915simple/i915_debug_fp.c @@ -299,6 +299,19 @@ print_tex_op(struct debug_stream *stream, } static void +print_texkil_op(struct debug_stream *stream, + unsigned opcode, const unsigned * program) +{ + PRINTF("TEXKIL "); + + print_reg_type_nr(stream, + (program[1] >> T1_ADDRESS_REG_TYPE_SHIFT) & + REG_TYPE_MASK, + (program[1] >> T1_ADDRESS_REG_NR_SHIFT) & REG_NR_MASK); + PRINTF("\n"); +} + +static void print_dcl_op(struct debug_stream *stream, unsigned opcode, const unsigned * program) { @@ -328,8 +341,10 @@ i915_disassemble_program(struct debug_stream *stream, if ((int) opcode >= A0_NOP && opcode <= A0_SLT) print_arith_op(stream, opcode >> 24, program); - else if (opcode >= T0_TEXLD && opcode <= T0_TEXKILL) + else if (opcode >= T0_TEXLD && opcode < T0_TEXKILL) print_tex_op(stream, opcode >> 24, program); + else if (opcode == T0_TEXKILL) + print_texkil_op(stream, opcode >> 24, program); else if (opcode == D0_DCL) print_dcl_op(stream, opcode >> 24, program); else |