From: Nicolai Hähnle Date: Tue, 6 Oct 2009 19:24:44 +0000 (+0200) Subject: r300/compiler: Fix R300 vertex program dumps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57abb76e1095d14f54ea8b8d0d2220e209b8656f;p=mesa.git r300/compiler: Fix R300 vertex program dumps The source register field has 8 bits. Signed-off-by: Nicolai Hähnle --- 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 980ef3eaea1..66f9b0529f2 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) ? "-" : " ",