From: Christian König Date: Fri, 17 Dec 2010 23:47:00 +0000 (+0100) Subject: [g3dvl] add some missing writemasks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ff871ee15b61ac2bef7ea91c70e32242581d3f4;p=mesa.git [g3dvl] add some missing writemasks --- 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);