summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-12-05 10:13:49 +1000
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-14 19:03:11 +0000
commitadda8b9eb67a888c10da1e9beb9426dffce74744 (patch)
tree34067e2be067e90cd46bdbadad0614ba5faa7ca0
parent69a4fa0c357be8dd36ae1464f43cd8ab8b4ad46e (diff)
downloadexternal_mesa3d-adda8b9eb67a888c10da1e9beb9426dffce74744.zip
external_mesa3d-adda8b9eb67a888c10da1e9beb9426dffce74744.tar.gz
external_mesa3d-adda8b9eb67a888c10da1e9beb9426dffce74744.tar.bz2
radv: fix another regression since shadow fixes.
This fixes: dEQP-VK.glsl.texture_gather.basic.2d.depth32f.* Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit 8033f78f94c7c6349e1c6a4d63fe3accb34b36f1)
-rw-r--r--src/amd/common/ac_nir_to_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 0daef08..ccf10ac 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3545,7 +3545,7 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr)
if (instr->op == nir_texop_query_levels)
result = LLVMBuildExtractElement(ctx->builder, result, LLVMConstInt(ctx->i32, 3, false), "");
- else if (instr->is_shadow && instr->op != nir_texop_txs && instr->op != nir_texop_lod)
+ else if (instr->is_shadow && instr->op != nir_texop_txs && instr->op != nir_texop_lod && instr->op != nir_texop_tg4)
result = LLVMBuildExtractElement(ctx->builder, result, ctx->i32zero, "");
else if (instr->op == nir_texop_txs &&
instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE &&