anv: bump internal descriptor index fields to 32bits
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 14 Apr 2021 08:58:06 +0000 (11:58 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 18:52:48 +0000 (18:52 +0000)
commit23c4b59b46e403e21851ffc04ee0cfb0146df4c9
treee710bdf344ca38da9ab934d167f12a8e9b027be1
parent97e7b21c4229636bc9f9bc55334ca7416f9fce4f
anv: bump internal descriptor index fields to 32bits

Prior to supporting VK_EXT_descriptor_indexing all of our descriptor
limits where below 64k which fitted a uint16_t. Now all of those can
go up to 2^20 entries so we need 32bits indexes to keep track of them.

This change leaves the dynamic indexes at 16bits. We could arguably
bump them too, up to the reviewer's taste.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 6e230d7607f9b3 ("anv: Implement VK_EXT_descriptor_indexing")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4636
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10228>
src/intel/vulkan/anv_private.h