Mesa (master): r600g: Print integer values of literal constants in shader dumps

Tom Stellard tstellar at kemper.freedesktop.org
Thu May 3 14:02:11 UTC 2012


Module: Mesa
Branch: master
Commit: a2e08a40f5144a3533de9c3ede422a34b7a44255
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2e08a40f5144a3533de9c3ede422a34b7a44255

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Fri Apr 27 15:26:30 2012 -0400

r600g: Print integer values of literal constants in shader dumps

---

 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 4fb06bf..0d67fbd 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -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;




More information about the mesa-commit mailing list