panvk: Put the sysval and push const UBOs at fixed indices
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 29 Apr 2022 15:20:18 +0000 (10:20 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 12 May 2022 10:53:16 +0000 (10:53 +0000)
commit6d15d65e19e2a77b64c4ab7b5120ad3b8be2b611
tree0397c1661fb6a4371bcffa9c8ba0f1d6edeb1349
parent744b97796301c78d5b7b71e79fd3b8f85e498008
panvk: Put the sysval and push const UBOs at fixed indices

In theory, this may cost us a tiny bit of descriptor space but in
practice, given that the viewport transform is a sysval, we'll always
need it for 3D and given that SSBO pointers live there, we'll basically
always need it for compute.  It also makes a lot of things simpler.
We're about to start using the sysval UBO directly in our descriptor set
code and knowing the index up-front is really nice.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16276>
src/panfrost/vulkan/panvk_descriptor_set.c
src/panfrost/vulkan/panvk_private.h
src/panfrost/vulkan/panvk_vX_cs.c
src/panfrost/vulkan/panvk_vX_nir_lower_descriptors.c
src/panfrost/vulkan/panvk_vX_pipeline.c
src/panfrost/vulkan/panvk_vX_shader.c