From: Dawn Han Date: Wed, 30 Nov 2022 19:02:40 +0000 (+0000) Subject: venus: check against the Vulkan type rather than type index. X-Git-Tag: upstream/23.3.3~15905 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0033ec1f69338d35aee7ef57196e0ddcf8db20e3;p=platform%2Fupstream%2Fmesa.git venus: check against the Vulkan type rather than type index. Signed-off-by: Dawn Han Part-of: --- diff --git a/src/virtio/vulkan/vn_descriptor_set.c b/src/virtio/vulkan/vn_descriptor_set.c index 82f3fbf..f9fd868 100644 --- a/src/virtio/vulkan/vn_descriptor_set.c +++ b/src/virtio/vulkan/vn_descriptor_set.c @@ -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 ||