amd: lower subdword UBO loads in NIR
authorMarek Olšák <marek.olsak@amd.com>
Sat, 29 Oct 2022 21:29:37 +0000 (17:29 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Mar 2023 03:27:40 +0000 (03:27 +0000)
commit82919e2dcb1cc07745a920a928e269cc00bcb27f
treec78a9fc93e6779824eb64fbef59f592b855d2056
parent1a424fee4a2cc807992ab4eb3e2130363150d930
amd: lower subdword UBO loads in NIR

This fixes broken subdword UBO loads with LLVM.

It's only needed for LLVM, but it's done for both LLVM and ACO because
the pass can be fully validated only with ACO and the Vulkan CTS right now.

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/llvm/ac_nir_to_llvm.c
src/amd/vulkan/radv_pipeline.c
src/gallium/drivers/radeonsi/si_shader_nir.c