summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-07-30 16:03:58 +1200
committerChris Forbes <chrisf@ijw.co.nz>2013-07-31 21:33:18 +1200
commitcace82b0cdd9b93a21adbb5857f1f69ee0a2f925 (patch)
tree1d47be2dea8a86bcd05196ec88b79076d8768e14 /src/mesa/drivers/dri
parent97676032c28e20b4c4150c3632794f5bdaa9efad (diff)
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 <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 1d86b33e8e..525485048c 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) {