Mesa (9.1): i965/vs: Put lod parameter in the correct place for Gen4
Carl Worth
cworth at kemper.freedesktop.org
Wed Jul 31 23:19:35 UTC 2013
Module: Mesa
Branch: 9.1
Commit: e6cf672b1af19fe9ef2d8462f9d5a92aa211ed65
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6cf672b1af19fe9ef2d8462f9d5a92aa211ed65
Author: Chris Forbes <chrisf at ijw.co.nz>
Date: Tue Jul 30 16:03:58 2013 +1200
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 at ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: mesa-stable at lists.freedesktop.org
(cherry picked from commit cace82b0cdd9b93a21adbb5857f1f69ee0a2f925)
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +-
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 86f9a33..c270a67 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -2215,7 +2215,7 @@ vec4_visitor::visit(ir_texture *ir)
}
} else /* intel->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) {
More information about the mesa-commit
mailing list