summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/amd/llvm/ac_nir_to_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c
index bb99c736f78..41b71cd63a5 100644
--- a/src/amd/llvm/ac_nir_to_llvm.c
+++ b/src/amd/llvm/ac_nir_to_llvm.c
@@ -2633,7 +2633,7 @@ static LLVMValueRef visit_image_atomic(struct ac_nir_context *ctx,
instr->intrinsic == nir_intrinsic_bindless_image_atomic_umin ||
instr->intrinsic == nir_intrinsic_bindless_image_atomic_imax ||
instr->intrinsic == nir_intrinsic_bindless_image_atomic_umax) {
- const GLenum format = nir_intrinsic_format(instr);
+ ASSERTED const GLenum format = nir_intrinsic_format(instr);
assert(format == GL_R32UI || format == GL_R32I);
}
dim = nir_intrinsic_image_dim(instr);