venus: check against the Vulkan type rather than type index.

Signed-off-by: Dawn Han <dawnhan@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20064>
This commit is contained in:
Dawn Han 2022-11-30 19:02:40 +00:00 committed by Marge Bot
parent fbf4c6e43f
commit 0033ec1f69

View file

@ -341,7 +341,7 @@ vn_CreateDescriptorPool(VkDevice device,
assert(type_index < VN_NUM_DESCRIPTOR_TYPES);
if (type_index == VN_DESCRIPTOR_TYPE_MUTABLE_EXT) {
if (pool_size->type == VK_DESCRIPTOR_TYPE_MUTABLE_EXT) {
struct vn_descriptor_pool_state_mutable *mutable_state = NULL;
BITSET_DECLARE(mutable_types, VN_NUM_DESCRIPTOR_TYPES);
if (!mutable_descriptor_info ||