Module: Mesa Branch: master Commit: e2b40e253b420933ebc504c7fd929168f2afe77d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2b40e253b420933ebc504c7fd929168f2afe77d
Author: Matt Turner <matts...@gmail.com> Date: Sat Mar 30 21:26:57 2013 -0700 i965/fs: Fix bad interaction between tex swizzles and textureQueryLOD. Reported-by: Chris Forbes <chr...@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 8556b56..b6fc218 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -1468,7 +1468,7 @@ fs_visitor::swizzle_result(ir_texture *ir, fs_reg orig_val, int sampler) { this->result = orig_val; - if (ir->op == ir_txs) + if (ir->op == ir_txs || ir->op == ir_lod) return; if (ir->type == glsl_type::float_type) { _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit