From cace82b0cdd9b93a21adbb5857f1f69ee0a2f925 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 30 Jul 2013 16:03:58 +1200 Subject: [PATCH] i965/vs: Put lod parameter in the correct place for Gen4 This was never visible before due to the bogus sampler state pointer. Fixes remaining vertex texturing breakage on Gen4. Signed-off-by: Chris Forbes Reviewed-by: Kenneth Graunke Cc: mesa-stable@lists.freedesktop.org --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 1d86b33e8e8..525485048cf 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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) { -- 2.30.2