diff options
author | Brian <[email protected]> | 2007-10-23 10:55:14 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-23 10:55:14 -0600 |
commit | 6229005f93f38c9a08027536c0bbc30a83f1f220 (patch) | |
tree | fd61f7e8884bf225f3a517e0655f81df191979d6 /src | |
parent | 6c63b35ef7e5f0b338fe1c748ec0683a768489fa (diff) |
properly init dst reg's CondMask/Swizzle fields
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 4 | ||||
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index eb59d2003a3..47f3adbd0d8 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -461,8 +461,8 @@ static void emit_dst( struct prog_dst_register *dst, dst->File = ureg.file; dst->Index = ureg.idx; dst->WriteMask = mask; - dst->CondMask = 0; - dst->CondSwizzle = 0; + dst->CondMask = COND_TR; /* always pass cond test */ + dst->CondSwizzle = SWIZZLE_NOOP; } static struct prog_instruction * diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 6a6db06285e..b7bc1977237 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -489,8 +489,8 @@ static void emit_dst( struct prog_dst_register *dst, dst->Index = reg.idx; /* allow zero as a shorthand for xyzw */ dst->WriteMask = mask ? mask : WRITEMASK_XYZW; - dst->CondMask = COND_TR; - dst->CondSwizzle = 0; + dst->CondMask = COND_TR; /* always pass cond test */ + dst->CondSwizzle = SWIZZLE_NOOP; dst->CondSrc = 0; dst->pad = 0; } @@ -513,7 +513,7 @@ static void debug_insn( struct prog_instruction *inst, const char *fn, static void emit_op3fn(struct tnl_program *p, - GLuint op, + enum prog_opcode op, struct ureg dest, GLuint mask, struct ureg src0, |