r500: print out opcode string
authorDave Airlie <airlied@redhat.com>
Wed, 21 May 2008 06:00:18 +0000 (16:00 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 21 May 2008 06:00:18 +0000 (16:00 +1000)
src/mesa/drivers/dri/r300/r500_fragprog.c

index c83fa3befe24060045193689042538b5ef20fd60..9e08b2757fbf39ae11b8cd63c50dda7ac8cf02cb 100644 (file)
@@ -876,7 +876,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
                                                counter++;
                                break;
                        default:
-                               ERROR("unknown fpi->Opcode %d\n", fpi->Opcode);
+                               ERROR("unknown fpi->Opcode %s\n", _mesa_opcode_string(fpi->Opcode));
                                break;
                }