venus: check against the Vulkan type rather than type index.
authorDawn Han <dawnhan@google.com>
Wed, 30 Nov 2022 19:02:40 +0000 (19:02 +0000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Dec 2022 19:50:53 +0000 (19:50 +0000)
Signed-off-by: Dawn Han <dawnhan@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20064>

src/virtio/vulkan/vn_descriptor_set.c

index 82f3fbf..f9fd868 100644 (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 ||