amd: lower multi-component subdword SSBO loads in NIR
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Nov 2022 20:58:47 +0000 (15:58 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Mar 2023 03:27:40 +0000 (03:27 +0000)
commit4f7e35323731d282cdc348850f64137287902a64
treeedf1567821dca3987343fee7437f7d66baa182a3
parent82919e2dcb1cc07745a920a928e269cc00bcb27f
amd: lower multi-component subdword SSBO loads in NIR

because the hw and LLVM only support subdword single-component SSBO loads,
and ac_nir_to_llvm splits multi-component loads because of that, which is
inefficient.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19399>
src/amd/vulkan/radv_pipeline.c
src/gallium/drivers/radeonsi/si_shader_nir.c