From: Chris Forbes Date: Thu, 26 Sep 2013 08:08:32 +0000 (+1200) Subject: i965: ignore all texturing opcodes without a coordinate, for cubemap normalize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7480ae3cb827ad5d17fb087efe360d5db72d340a;p=mesa.git 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 Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp b/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp index 949414cc954..33571292007 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);