mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:
parent
b9221c7c89
commit
a9066c801b
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue