i965: Fix RECT shadow sampling by not losing the other texcoords.
authorEric Anholt <eric@anholt.net>
Tue, 4 Aug 2009 19:39:22 +0000 (12:39 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 4 Aug 2009 19:43:18 +0000 (12:43 -0700)
Bug #20821

src/mesa/drivers/dri/i965/brw_wm_fp.c

index b9e8dd2..a831222 100644 (file)
@@ -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);