i965: Print the opcode name for unrecognized opcodes in the GLSL path.

This commit is contained in:
Eric Anholt 2010-03-10 10:51:13 -08:00
parent 9a7ba79b2b
commit f77c1cd7df
1 changed files with 3 additions and 2 deletions

View 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. */