r600g: Print integer values of literal constants in shader dumps
authorTom Stellard <thomas.stellard@amd.com>
Fri, 27 Apr 2012 19:26:30 +0000 (15:26 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 3 May 2012 13:20:23 +0000 (09:20 -0400)
src/gallium/drivers/r600/r600_asm.c

index 4fb06bf78f799e715c9fae67c750ba129cf5963f..0d67fbd6a0466db0c8bcf7bb126657cb1c6f635f 100644 (file)
@@ -2484,7 +2484,8 @@ void r600_bytecode_dump(struct r600_bytecode *bc)
                        if (alu->last) {
                                for (i = 0; i < nliteral; i++, id++) {
                                        float *f = (float*)(bc->bytecode + id);
-                                       fprintf(stderr, "%04d %08X\t%f\n", id, bc->bytecode[id], *f);
+                                       fprintf(stderr, "%04d %08X\t%f (%d)\n", id, bc->bytecode[id], *f,
+                                                       *(bc->bytecode + id));
                                }
                                id += nliteral & 1;
                                nliteral = 0;