r600g: Print integer values of literal constants in shader dumps

This commit is contained in:
Tom Stellard
2012-04-27 15:26:30 -04:00
parent 18617d7423
commit a2e08a40f5
+2 -1
View 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;