i965: ignore all texturing opcodes without a coordinate, for cubemap normalize
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 26 Sep 2013 08:08:32 +0000 (20:08 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 5 Oct 2013 06:16:33 +0000 (19:16 +1300)
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>
src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp

index 949414cc954bc7d03ab5118144bca95565bf1f86..33571292007a37066f41d8b2d810d80182f4baef 100644 (file)
@@ -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);