diff options
author | Eric Anholt <[email protected]> | 2009-08-12 13:49:06 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-08-12 13:50:09 -0700 |
commit | d64649a316858a390bafe2aa619be3cf2c98ffde (patch) | |
tree | 978c0a11121b170ea753a0080d3f53d6a0399036 /src | |
parent | 5faa0dc591527683e32306456cbfe6d93afa04da (diff) |
i965: Make the cube mapping RCP use a writemask.
Fixes cube mapping since the scalar changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_fp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |