dzn: Only bind descriptor sets up to the used amount of the current layout
authorJesse Natalie <jenatali@microsoft.com>
Thu, 23 Mar 2023 15:33:18 +0000 (08:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 21:48:44 +0000 (21:48 +0000)
commit35a789dbb7d830cb95e8aea60c2d3a3e7d27e183
treefe589ab6c9f61291e5648ab088abdf188e1238ce
parenta227ef29839458cb9d971dc5f3665087a98697cb
dzn: Only bind descriptor sets up to the used amount of the current layout

Prevents setting a root SRV into a slot that's not declared as an SRV
in the root signature if a set is bound into a higher slot from a previous
draw/dispatch op.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21913>
src/microsoft/vulkan/dzn_cmd_buffer.c