diff options
author | Eric Anholt <[email protected]> | 2009-08-04 12:39:22 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-08-04 12:43:18 -0700 |
commit | 191e028de20b2f954621b652aa77b06d0e93652a (patch) | |
tree | 918d39961114bc440c43918518a4d20b069cfeda /src/mesa/drivers/dri/i965 | |
parent | 23671e5358ffc0abfec83aeea9a515b09a6b35f3 (diff) |
i965: Fix RECT shadow sampling by not losing the other texcoords.
Bug #20821
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_fp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c index b9e8dd2e96e..a8312228496 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_fp.c +++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c @@ -717,7 +717,11 @@ static void precalc_tex( struct brw_wm_compile *c, tmpcoord, 0, inst->SrcReg[0], - scale, + src_swizzle(scale, + SWIZZLE_X, + SWIZZLE_Y, + SWIZZLE_ONE, + SWIZZLE_ONE), src_undef()); coord = src_reg_from_dst(tmpcoord); |