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>
Fri, 4 Sep 2009 21:12:36 +0000 (14:12 -0700)
Bug #20821
(cherry picked from commit 191e028de20b2f954621b652aa77b06d0e93652a)

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

index 49aad281d7a8d8751c7e617b7db57935a2102c77..8cf3a1fd130883edc5e6b36982a8146159b22a9f 100644 (file)
@@ -705,7 +705,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);