summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-09-26 20:08:32 +1200
committerChris Forbes <chrisf@ijw.co.nz>2013-10-05 19:16:33 +1300
commit7480ae3cb827ad5d17fb087efe360d5db72d340a (patch)
treeb7163b17d6cfd04d6bf907b1383c21a2d323b127
parent7a4754d7d961b06652cc940c37c4f87a9111dc2a (diff)
downloadexternal_mesa3d-7480ae3cb827ad5d17fb087efe360d5db72d340a.zip
external_mesa3d-7480ae3cb827ad5d17fb087efe360d5db72d340a.tar.gz
external_mesa3d-7480ae3cb827ad5d17fb087efe360d5db72d340a.tar.bz2
i965: ignore all texturing opcodes without a coordinate, for cubemap normalize
Previously we special-cased textureSize() but this is the more correct condition. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp b/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
index 949414c..3357129 100644
--- a/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
+++ b/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
@@ -52,7 +52,7 @@ brw_cubemap_normalize_visitor::visit_leave(ir_texture *ir)
if (ir->sampler->type->sampler_dimensionality != GLSL_SAMPLER_DIM_CUBE)
return visit_continue;
- if (ir->op == ir_txs)
+ if (!ir->coordinate)
return visit_continue;
void *mem_ctx = ralloc_parent(ir);