Mesa (master): r300/compiler: Fix R300 vertex program dumps

Nicolai Hähnle nh at kemper.freedesktop.org
Wed Oct 7 18:48:20 UTC 2009


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

Author: Nicolai Hähnle <nhaehnle at gmail.com>
Date:   Tue Oct  6 21:24:44 2009 +0200

r300/compiler: Fix R300 vertex program dumps

The source register field has 8 bits.

Signed-off-by: Nicolai Hähnle <nhaehnle at gmail.com>

---

 .../drivers/dri/r300/compiler/r3xx_vertprog_dump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog_dump.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog_dump.c
index 980ef3e..66f9b05 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog_dump.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog_dump.c
@@ -146,7 +146,7 @@ static void r300_vs_op_dump(uint32_t op)
 static void r300_vs_src_dump(uint32_t src)
 {
 	fprintf(stderr, " reg: %d%s swiz: %s%s/%s%s/%s%s/%s%s\n",
-			(src >> 5) & 0x7f, r300_vs_src_debug[src & 0x3],
+			(src >> 5) & 0xff, r300_vs_src_debug[src & 0x3],
 			src & (1 << 25) ? "-" : " ",
 			r300_vs_swiz_debug[(src >> 13) & 0x7],
 			src & (1 << 26) ? "-" : " ",




More information about the mesa-commit mailing list