From: Tom Stellard Date: Fri, 27 Apr 2012 19:26:30 +0000 (-0400) Subject: r600g: Print integer values of literal constants in shader dumps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2e08a40f5144a3533de9c3ede422a34b7a44255;p=mesa.git r600g: Print integer values of literal constants in shader dumps --- 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;