summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-22 09:04:18 -0600
committerBrian <brian@yutani.localnet.net>2007-03-22 09:04:18 -0600
commit1936b25ebd580c5ef9e8cb471a986da39ef46ca5 (patch)
treea9a3e88e51b5e5d4e6686307c1d88d48918f52a4 /src
parent629ec2b06be40a32fa820a105e40e7b894acc84e (diff)
print conditional writemask, if enabled
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/prog_print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 4519f0c030..d290ce0a2a 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -388,6 +388,12 @@ print_dst_reg(const struct prog_dst_register *dstReg, gl_prog_print_mode mode,
dstReg->Index, mode, prog),
writemask_string(dstReg->WriteMask));
+ if (dstReg->CondMask != COND_TR) {
+ _mesa_printf(" (%s.%s)",
+ condcode_string(dstReg->CondMask),
+ _mesa_swizzle_string(dstReg->CondSwizzle, GL_FALSE, GL_FALSE));
+ }
+
#if 0
_mesa_printf("%s[%d]%s",
file_string((enum register_file) dstReg->File, mode),