wsi/metal: current extents might not be known until swapchain is created

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33518>
This commit is contained in:
Aleksi Sapon 2025-02-12 16:05:07 -05:00 committed by Marge Bot
parent b9221c7c89
commit a9066c801b

View file

@ -55,6 +55,9 @@ wsi_metal_surface_get_capabilities(VkIcdSurfaceBase *surface,
&caps->currentExtent.width,
&caps->currentExtent.height);
if (!caps->currentExtent.width && !caps->currentExtent.height)
caps->currentExtent.width = caps->currentExtent.height = UINT32_MAX;
caps->minImageCount = 2;
caps->maxImageCount = 3;