[g3dvl] no need to swizzle a scalar
authorChristian König <deathsimple@vodafone.de>
Tue, 14 Dec 2010 19:20:36 +0000 (20:20 +0100)
committerChristian König <deathsimple@vodafone.de>
Tue, 14 Dec 2010 19:20:36 +0000 (20:20 +0100)
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c

index b0ac57ab7a3908e24f011f4a307bc11a94cf59bf..eec6a65ee79606736eb63fcb780290e9345bc05b 100644 (file)
@@ -390,7 +390,7 @@ fetch_ref(struct ureg_program *shader, struct ureg_dst field)
             tc[3], tc[2]);
          ureg_TEX(shader, ref[1], TGSI_TEXTURE_2D, ureg_src(tmp), sampler[1]);
 
-         ureg_LRP(shader, result, ureg_scalar(ureg_imm1f(shader, 0.5f), TGSI_SWIZZLE_X),
+         ureg_LRP(shader, result, ureg_imm1f(shader, 0.5f),
             ureg_src(ref[0]), ureg_src(ref[1]));
 
       ureg_fixup_label(shader, bi_label, ureg_get_instruction_number(shader));