anv: support alternative push descriptor sets
authorChia-I Wu <olvaffe@gmail.com>
Mon, 9 Oct 2023 23:43:36 +0000 (16:43 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 14 Oct 2023 02:36:40 +0000 (02:36 +0000)
commit7a4903626b882b2d204b6f45f953cff2c06b2f24
tree05a371a3c942ac4b0d165ce0e202dc5a2c4a8fa4
parenta86a4e5fcf4459ae1ed7ac50848948ec1f24063c
anv: support alternative push descriptor sets

Do not assume anv_cmd_pipeline_state::push_descriptor is the currently
bound push descriptor set.  With this and anv_push_descriptor_set_init,
it is possible to initialize a temporary push descriptor set on stack
for internal use.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25467>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c