diff options
author | Samuel Pitoiset <[email protected]> | 2018-11-20 10:01:01 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-11-20 10:23:45 +0100 |
commit | f4563d8f5bf3a405e70446004e7e0c5e84f9c7fa (patch) | |
tree | 86163d058a43930cda26491d341b5597631f8408 /src | |
parent | dd0172e865f3e452554a90df33a8464efc2ba235 (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
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 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; |