anv/apply_pipeline_layout: Lower UBO loads in the early pass
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Jan 2021 06:18:37 +0000 (00:18 -0600)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 17:49:59 +0000 (17:49 +0000)
commita7fe687bde150f2e21a3994083f8d9a9ee7d970e
tree3e23a62c48bcd9ed25c9713edb03c2fd48007ec1
parent799a931d127f977d7720069c3fbd5263426f1fc9
anv/apply_pipeline_layout: Lower UBO loads in the early pass

We're about to enable bindless UBOs via A64 memory access like we do for
SSBOs.  In order to prevent 100% of UBOs from hitting that path, we
enable them in the early lowering.  This way we'll still get binding
table-based UBO access for any non-bindless ones.  In particular, we
need this for UBO pushing to work.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8635>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c