ir_to_mesa: Actually initialize the undef register for scalar_op1.

Fixes glsl-sin, glsl-cos on 965, where we rely on unused src arguments
in the VS having a file of PROGRAM_UNDEFINED.
This commit is contained in:
Eric Anholt
2010-06-28 15:02:51 -07:00
parent f9ffccb06b
commit 59a23d7fb9

View File

@@ -366,7 +366,7 @@ ir_to_mesa_visitor::ir_to_mesa_emit_scalar_op1(ir_instruction *ir,
ir_to_mesa_dst_reg dst,
ir_to_mesa_src_reg src0)
{
ir_to_mesa_src_reg undef;
ir_to_mesa_src_reg undef = ir_to_mesa_undef;
undef.swizzle = SWIZZLE_XXXX;