r300/compiler: Fix R300 vertex program dumps
authorNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 19:24:44 +0000 (21:24 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 19:24:44 +0000 (21:24 +0200)
The source register field has 8 bits.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/compiler/r3xx_vertprog_dump.c

index 980ef3eaea11c4f277bb6e63975fe31a40167c54..66f9b0529f27900ef6a8523dfb842bacdc878b02 100644 (file)
@@ -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) ? "-" : " ",