i965: Print the opcode name for unrecognized opcodes in the GLSL path.
authorEric Anholt <eric@anholt.net>
Wed, 10 Mar 2010 18:51:13 +0000 (10:51 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 10 Mar 2010 19:18:21 +0000 (11:18 -0800)
src/mesa/drivers/dri/i965/brw_wm_glsl.c

index ea3c240..14caf24 100644 (file)
@@ -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. */