From e2b40e253b420933ebc504c7fd929168f2afe77d Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 30 Mar 2013 21:26:57 -0700 Subject: [PATCH] i965/fs: Fix bad interaction between tex swizzles and textureQueryLOD. Reported-by: Chris Forbes Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 8556b56439e..b6fc21849ad 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) { -- 2.30.2