mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
vulkan/wsi/headless: add stub for VkSurfacePresentScalingCapabilitiesKHR
Similar to last MR, since we advertise support for KHR_swapchain_maintenance1, we need to advertise this Cc: mesa-stable Signed-off-by: llyyr <llyyr.public@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39218>
This commit is contained in:
parent
9cd5a4849a
commit
a1dd7eec87
1 changed files with 10 additions and 0 deletions
|
|
@ -114,6 +114,16 @@ wsi_headless_surface_get_capabilities2(VkIcdSurfaceBase *surface,
|
|||
protected->supportsProtected = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_SURFACE_PRESENT_SCALING_CAPABILITIES_KHR: {
|
||||
/* Unsupported */
|
||||
VkSurfacePresentScalingCapabilitiesKHR *scaling = (void *)ext;
|
||||
scaling->supportedPresentScaling = 0;
|
||||
scaling->supportedPresentGravityX = 0;
|
||||
scaling->supportedPresentGravityY = 0;
|
||||
scaling->minScaledImageExtent = caps->surfaceCapabilities.minImageExtent;
|
||||
scaling->maxScaledImageExtent = caps->surfaceCapabilities.maxImageExtent;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_SURFACE_PRESENT_MODE_COMPATIBILITY_KHR: {
|
||||
/* Unsupported */
|
||||
VkSurfacePresentModeCompatibilityKHR *compat = (void *)ext;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue