diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-10 10:51:13 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-10 11:18:21 -0800 |
commit | f77c1cd7df805f097958a5b83d235f8a8ad693b1 (patch) | |
tree | 277ff7a275ca740a56572764faabea9d7a72b7b4 /src/mesa/drivers/dri/i965/brw_wm_glsl.c | |
parent | 9a7ba79b2bb60d83fc3bc04280e64cc564cb8760 (diff) |
i965: Print the opcode name for unrecognized opcodes in the GLSL path.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_glsl.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index ea3c2405af..14caf24e4b 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -2026,8 +2026,9 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c) } break; default: - printf("unsupported IR in fragment shader %d\n", - inst->Opcode); + printf("unsupported opcode %d (%s) in fragment shader\n", + inst->Opcode, inst->Opcode < MAX_OPCODE ? + _mesa_opcode_string(inst->Opcode) : "unknown"); } /* Release temporaries containing any unaliased source regs. */ |