From: Eric Anholt Date: Wed, 12 Aug 2009 20:49:06 +0000 (-0700) Subject: i965: Make the cube mapping RCP use a writemask. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d64649a316858a390bafe2aa619be3cf2c98ffde;p=mesa.git i965: Make the cube mapping RCP use a writemask. Fixes cube mapping since the scalar changes. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c index 8e37a01ff16..0eac1bf86a3 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_fp.c +++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c @@ -716,7 +716,7 @@ static void precalc_tex( struct brw_wm_compile *c, /* tmp0 = 1 / tmp1 */ emit_op(c, OPCODE_RCP, - tmp0, + dst_mask(tmp0, WRITEMASK_X), 0, tmp1src, src_undef(), @@ -727,7 +727,7 @@ static void precalc_tex( struct brw_wm_compile *c, tmpcoord, 0, src0, - tmp0src, + src_swizzle1(tmp0src, SWIZZLE_X), src_undef()); release_temp(c, tmp0);