ac/nir: Make intrinsic_name buffer long enough
authorJames Legg <jlegg@feralinteractive.com>
Fri, 23 Jun 2017 10:18:56 +0000 (11:18 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 28 Jun 2017 19:05:04 +0000 (21:05 +0200)
commit6fc41bb4d59313985f67b1276d1fd1225be09426
tree6fd037e7f98c45a1ddc4ad43dec469b28da8143c
parent2cde8ff54598bac2d1e0900186a5b4bbfc4d3809
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>
src/amd/common/ac_nir_to_llvm.c