From 7ff871ee15b61ac2bef7ea91c70e32242581d3f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Sat, 18 Dec 2010 00:47:00 +0100 Subject: [PATCH] [g3dvl] add some missing writemasks --- src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c index 25e97efec04..6b78170fb76 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c @@ -386,7 +386,7 @@ fetch_ref(struct ureg_program *shader, struct ureg_dst field) ureg_TEX(shader, ref[0], TGSI_TEXTURE_2D, ureg_src(ref[0]), sampler[0]); ureg_TEX(shader, ref[1], TGSI_TEXTURE_2D, ureg_src(ref[1]), sampler[1]); - ureg_LRP(shader, result, ureg_imm1f(shader, 0.5f), + ureg_LRP(shader, ureg_writemask(result, TGSI_WRITEMASK_XYZ), ureg_imm1f(shader, 0.5f), ureg_src(ref[0]), ureg_src(ref[1])); ureg_fixup_label(shader, bi_label, ureg_get_instruction_number(shader)); @@ -419,7 +419,7 @@ create_frag_shader(struct vl_mpeg12_mc_renderer *r) result = fetch_ref(shader, field); - ureg_ADD(shader, fragment, ureg_src(texel), ureg_src(result)); + ureg_ADD(shader, ureg_writemask(fragment, TGSI_WRITEMASK_XYZ), ureg_src(texel), ureg_src(result)); ureg_release_temporary(shader, field); ureg_release_temporary(shader, texel); -- 2.30.2