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 b9e8dd2e96e6ea0172b1276bb2393031aab2e653..a8312228496d5f6d4161b61f8bf0f48119df666f 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);