radv/llvm: fix GS shaders on GFX8/9
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 29 Sep 2022 13:22:16 +0000 (14:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Nov 2022 12:48:01 +0000 (12:48 +0000)
commita71d068fd07f5d34561b28f2f57267031077033a
tree78a032b2940ffe3fdb43690b3d9e0b13714be8fc
parent6014a642ae24e37c287adbf41d615efa18d0da3d
radv/llvm: fix GS shaders on GFX8/9

6698753cdb6 switched our GS output stores to use MUBUF.

The stride doesn't matter for the ESGS descriptor (because idxen=false and
the index stride is 64), but this fixes it anyway.

This also changes ACO to use MUBUF store too, since MTBUF doesn't seem to
work correctly with an invalid data format in the descriptor.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 6698753cdb6 ("ac/llvm: don't use tbuffer_store as a fallback for swizzled stores")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18885>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/vulkan/radv_device.c