OSDN Git Service

i965/fs: Fix bad interaction between tex swizzles and textureQueryLOD.
authorMatt Turner <mattst88@gmail.com>
Sun, 31 Mar 2013 04:26:57 +0000 (21:26 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 1 Apr 2013 20:11:43 +0000 (13:11 -0700)
Reported-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 8556b56..b6fc218 100644 (file)
@@ -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) {