Even if lower_txd_cube_map isn't. Suggested by Ken to make the flag more consistent with its name. --- src/compiler/nir/nir_lower_tex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c index a9370c3..95c9f5b 100644 --- a/src/compiler/nir/nir_lower_tex.c +++ b/src/compiler/nir/nir_lower_tex.c @@ -839,8 +839,10 @@ nir_lower_tex_block(nir_block *block, nir_builder *b, progress = true; } - if (tex->op == nir_texop_txd && options->lower_txd_cube_map && - tex->sampler_dim == GLSL_SAMPLER_DIM_CUBE) { + if (tex->op == nir_texop_txd && + tex->sampler_dim == GLSL_SAMPLER_DIM_CUBE && + (options->lower_txd_cube_map || + (tex->is_shadow && options->lower_txd_shadow))) { lower_gradient_cube_map(b, tex); progress = true; } -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev