i965: more meaningful message for unsupported opcodes.

This commit is contained in:
Sam Hocevar 2008-09-23 17:56:19 +02:00 committed by Brian Paul
parent c5945c2d17
commit 831bfb9053
2 changed files with 8 additions and 3 deletions

View file

@ -1155,7 +1155,10 @@ void brw_vs_emit(struct brw_vs_compile *c )
case OPCODE_ENDSUB:
break;
default:
_mesa_printf("Unsupport opcode %d in vertex shader\n", inst->Opcode);
_mesa_printf("Unsupported opcode %i (%s) in vertex shader\n",
inst->Opcode, inst->Opcode < MAX_OPCODE ?
_mesa_opcode_string(inst->Opcode) :
"unknown");
break;
}

View file

@ -1302,8 +1302,10 @@ void brw_wm_emit( struct brw_wm_compile *c )
break;
default:
_mesa_printf("unsupport opcode %d in fragment program\n",
inst->opcode);
_mesa_printf("Unsupported opcode %i (%s) in fragment shader\n",
inst->opcode, inst->opcode < MAX_OPCODE ?
_mesa_opcode_string(inst->opcode) :
"unknown");
}
for (i = 0; i < 4; i++)