ac/nir: split 16-bit SSBO stores on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Mar 2020 13:14:45 +0000 (14:14 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 08:01:28 +0000 (08:01 +0000)
commit3cd5450df52c6a314979f5dadf2f6f9d83deb533
treec7e04b4d8786a121e919b7ec8425811c442de4b9
parent55fdcc03de8dd7cf62d5b6e3d2369c55e222a822
ac/nir: split 16-bit SSBO stores on GFX6

Due to possible alignment issues, make sure to split stores of
16-bit vectors.

Doom Eternal requires storageBuffer16BitAccess.

Cc: 20.0 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4339>
src/amd/llvm/ac_nir_to_llvm.c