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: <mesa-stable@lists.freedesktop.org> Reviewed-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
2cde8ff545
commit
6fc41bb4d5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue