summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-11-28 16:22:05 +1000
committerDave Airlie <[email protected]>2016-11-28 16:23:10 +1000
commit020978af12ef6d598bc5efeae3704c0eb8cdafd2 (patch)
tree4d7db30d57103259ecb40a27b1b6fb829e5b1449 /src/amd
parentb2e217369e1ca4bf9d7741721559a4506b1f0ce8 (diff)
radv: brown-paper bag for a forgotten else.
This fixes the fix: radv/ac/llvm: fix regression with shadow samplers fix Signed-off-by: Dave Airlie <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/amd')
-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 16e30ef110a..f623cc088d2 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3629,7 +3629,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), "");
- 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)
result = LLVMBuildExtractElement(ctx->builder, result, ctx->i32zero, "");
else if (instr->op == nir_texop_txs &&
instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE &&