summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorJames Legg <[email protected]>2017-06-23 11:18:56 +0100
committerBas Nieuwenhuizen <[email protected]>2017-06-28 21:05:04 +0200
commit6fc41bb4d59313985f67b1276d1fd1225be09426 (patch)
tree6fd037e7f98c45a1ddc4ad43dec469b28da8143c /src/amd
parent2cde8ff54598bac2d1e0900186a5b4bbfc4d3809 (diff)
ac/nir: Make intrinsic_name buffer long enough
When using cmpswap on an image, it was being trunctated to lvm.amdgcn.image.atomic.cmpswa, with the coords type missing entirely. v2: Add stable CC CC: <[email protected]> Reviewed-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[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 8877c2241d4..b5c6848bf59 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3397,7 +3397,7 @@ static LLVMValueRef visit_image_atomic(struct nir_to_llvm_context *ctx,
const char *base_name = "llvm.amdgcn.image.atomic";
const char *atomic_name;
LLVMValueRef coords;
- char intrinsic_name[32], coords_type[8];
+ char intrinsic_name[41], coords_type[8];
const struct glsl_type *type = glsl_without_array(var->type);
if (ctx->stage == MESA_SHADER_FRAGMENT)