From: Christian König Date: Tue, 14 Dec 2010 19:20:36 +0000 (+0100) Subject: [g3dvl] no need to swizzle a scalar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d98d2e7c6c34039032e6a0fb8888c450660c763f;p=mesa.git [g3dvl] no need to swizzle a scalar --- diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c index b0ac57ab7a3..eec6a65ee79 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c @@ -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));