From 68f80f9b0f71e2e72af52976ef1606b2081f289c Mon Sep 17 00:00:00 2001 From: Oskar Viljasaar Date: Mon, 19 Feb 2024 09:53:14 +0200 Subject: [PATCH] vulkan/properties: Start looping from the next member in GPDP2 We don't need to start iterating from `pProperties`, as the first member is already handled in vk_common_GetPhysicalDeviceProperties2. Eliminate this iteration by starting from pProperties->pNext. Reviewed-by: Konstantin Seurer Part-of: --- src/vulkan/util/vk_physical_device_properties_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/util/vk_physical_device_properties_gen.py b/src/vulkan/util/vk_physical_device_properties_gen.py index 11cde09c384..b690aa210ea 100644 --- a/src/vulkan/util/vk_physical_device_properties_gen.py +++ b/src/vulkan/util/vk_physical_device_properties_gen.py @@ -141,7 +141,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, ${copy_property("pProperties->properties." + prop.name, "pdevice->properties." + prop.actual_name, prop.decl)} % endfor - vk_foreach_struct(ext, pProperties) { + vk_foreach_struct(ext, pProperties->pNext) { switch (ext->sType) { % for property_struct in property_structs: % if property_struct.name not in SPECIALIZED_PROPERTY_STRUCTS: