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:
llyyr 2026-01-09 01:48:52 +05:30 committed by Marge Bot
parent 9cd5a4849a
commit a1dd7eec87

View file

@ -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;