OSDN Git Service

ac/nir: Make intrinsic_name buffer long enough
authorJames Legg <jlegg@feralinteractive.com>
Fri, 23 Jun 2017 10:18:56 +0000 (11:18 +0100)
committerAndres Gomez <agomez@igalia.com>
Sat, 8 Jul 2017 12:47:58 +0000 (15:47 +0300)
commit5b8b891a45b206ca1d6e6eced3c80b50fb20b820
treec95676123936277b095e89a46fa68bee51696fa1
parent70d5ca0363fe50534e7f1d30564b9f0bc0ce0486
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>
(cherry picked from commit 6fc41bb4d59313985f67b1276d1fd1225be09426)
src/amd/common/ac_nir_to_llvm.c