svga: Print the number and mnemonic of the opcode we're missing information for.
authorMichel Dänzer <daenzer@vmware.com>
Fri, 28 Jan 2011 15:09:04 +0000 (16:09 +0100)
committerMichel Dänzer <daenzer@vmware.com>
Mon, 31 Jan 2011 16:45:07 +0000 (17:45 +0100)
Makes it easier to figure out which opcode it's about.

src/gallium/drivers/svga/svgadump/svga_shader_op.c

index 95612a8..b40e24f 100644 (file)
@@ -156,6 +156,8 @@ const struct sh_opcode_info *svga_opcode_info( uint op )
    if (info->svga_opcode == SVGA3DOP_INVALID) {
       /* No valid information. Please provide number of dst/src registers.
        */
+      _debug_printf("Missing information for opcode %u, '%s'\n", op,
+                    opcode_info[op].mnemonic);
       assert( 0 );
       return NULL;
    }