[Mesa-dev] [PATCH] r600g: Print integer values of literal constants in shader dumps
Tom Stellard
tstellar at gmail.com
Mon Apr 30 08:33:30 PDT 2012
---
src/gallium/drivers/r600/r600_asm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 106a93c..a9c8290 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2485,7 +2485,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;
--
1.7.7.6
More information about the mesa-dev
mailing list