Skip to content

Commit b831551

Browse files
Remove false positive unknown chain member warnings
These warnings would be printed when any struct not explicitely looked for appeared in the pNext chain of GetPhysicalDeviceSurfaceCapabilities2KHR's in the emulation of VK_EXT_surface_maintenance1, which only looked for a small subset of the possible structs that could be in the chain.
1 parent 804a7a4 commit b831551

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

loader/wsi.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,10 +2453,6 @@ void emulate_VK_EXT_surface_maintenance1(struct loader_icd_term *icd_term, const
24532453
if (out_structure.sType == VK_STRUCTURE_TYPE_SURFACE_PRESENT_MODE_EXT) {
24542454
VkSurfacePresentModeEXT *surface_present_mode = (VkSurfacePresentModeEXT *)void_pNext;
24552455
present_mode = surface_present_mode->presentMode;
2456-
} else {
2457-
loader_log(icd_term->this_instance, VULKAN_LOADER_WARN_BIT, 0,
2458-
"vkGetPhysicalDeviceSurfaceCapabilities2KHR: Emulation found unrecognized structure type in "
2459-
"pSurfaceInfo->pNext - this struct will be ignored");
24602456
}
24612457
void_pNext = out_structure.pNext;
24622458
}
@@ -2489,10 +2485,6 @@ void emulate_VK_EXT_surface_maintenance1(struct loader_icd_term *icd_term, const
24892485
pSurfaceCapabilities->surfaceCapabilities.maxImageExtent;
24902486
surface_present_scaling_capabilities->minScaledImageExtent =
24912487
pSurfaceCapabilities->surfaceCapabilities.minImageExtent;
2492-
} else {
2493-
loader_log(icd_term->this_instance, VULKAN_LOADER_WARN_BIT, 0,
2494-
"vkGetPhysicalDeviceSurfaceCapabilities2KHR: Emulation found unrecognized structure type in "
2495-
"pSurfaceCapabilities->pNext - this struct will be ignored");
24962488
}
24972489
void_pNext = out_structure.pNext;
24982490
}

0 commit comments

Comments
 (0)