i965/vs: Put lod parameter in the correct place for Gen4
authorChris Forbes <chrisf@ijw.co.nz>
Tue, 30 Jul 2013 04:03:58 +0000 (16:03 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 31 Jul 2013 09:33:18 +0000 (21:33 +1200)
This was never visible before due to the bogus sampler state pointer.
Fixes remaining vertex texturing breakage on Gen4.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 1d86b33e8e894bd04b99ab767b1bf7cac29eef90..525485048cfc4ff16422523b3cab1b6ad58bb9be 100644 (file)
@@ -2427,7 +2427,7 @@ vec4_visitor::visit(ir_texture *ir)
            }
         } else /* brw->gen == 4 */ {
            mrf = param_base;
-           writemask = WRITEMASK_Z;
+           writemask = WRITEMASK_W;
         }
         emit(MOV(dst_reg(MRF, mrf, lod_type, writemask), lod));
       } else if (ir->op == ir_txf) {