From a2e08a40f5144a3533de9c3ede422a34b7a44255 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 27 Apr 2012 15:26:30 -0400 Subject: r600g: Print integer values of literal constants in shader dumps --- src/gallium/drivers/r600/r600_asm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 4fb06bf78f7..0d67fbd6a04 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; -- cgit v1.2.3