nvk: Add nir non-uniform optimization pass
authorGeorge Ouzounoudis <geothrock@gmail.com>
Sat, 15 Apr 2023 17:13:56 +0000 (20:13 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:06 +0000 (21:32 +0000)
commitedb58c666005f5b75d3d62cc61232b467fa9b498
tree6c24facd56b2497a7ffa88317ca6e1d6504cad74
parent0dd15199a1f235066874a206401ff00d713bfe23
nvk: Add nir non-uniform optimization pass

The hardware supports non-uniform access natively so we do not need to
lower most non-uniform access in the shader. Just lower the ubo access
as it should probably be faster when we uniformly load from real hw
ubos in the future.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_shader.c