radv: small fix for VkDescriptorSetVariableDescriptorCountLayoutSupport
authorGeorge Ouzounoudis <geothrock@gmail.com>
Sun, 14 May 2023 07:54:35 +0000 (10:54 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 16 May 2023 06:20:31 +0000 (06:20 +0000)
The VkDescriptorSetVariableDescriptorCountLayoutSupport structure should
be in the pNext chain of VkDescriptorSetLayoutSupport.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23009>

src/amd/vulkan/radv_descriptor_set.c

index c8db033..7363fba 100644 (file)
@@ -418,7 +418,7 @@ radv_GetDescriptorSetLayoutSupport(VkDevice device,
    const VkDescriptorSetLayoutBindingFlagsCreateInfo *variable_flags =
       vk_find_struct_const(pCreateInfo->pNext, DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO);
    VkDescriptorSetVariableDescriptorCountLayoutSupport *variable_count = vk_find_struct(
-      (void *)pCreateInfo->pNext, DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT);
+      pSupport->pNext, DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT);
    const VkMutableDescriptorTypeCreateInfoEXT *mutable_info =
       vk_find_struct_const(pCreateInfo->pNext, MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_EXT);
    if (variable_count) {