From f4563d8f5bf3a405e70446004e7e0c5e84f9c7fa Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 20 Nov 2018 10:01:01 +0100 Subject: [PATCH] ac/nir: fix intrinsic name string size in visit_image_atomic() Fixes an assertion in SoTTR. Fixes: dd0172e865 ("radv: Use structured intrinsics instead of indexing workaround for GFX9.") Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index a19e66fe2a0..c7fc676abde 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2424,7 +2424,7 @@ static LLVMValueRef visit_image_atomic(struct ac_nir_context *ctx, bool cmpswap = instr->intrinsic == nir_intrinsic_image_deref_atomic_comp_swap; const char *atomic_name; - char intrinsic_name[41]; + char intrinsic_name[64]; enum ac_atomic_op atomic_subop; const struct glsl_type *type = glsl_without_array(var->type); MAYBE_UNUSED int length; -- 2.30.2