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>
(cherry picked from commit a1dd7eec87)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39462>
This commit is contained in:
llyyr 2026-01-09 01:48:52 +05:30 committed by Dylan Baker
parent a95ee25b13
commit ac572e6009
2 changed files with 11 additions and 1 deletions

View file

@ -1374,7 +1374,7 @@
"description": "vulkan/wsi/headless: add stub for VkSurfacePresentScalingCapabilitiesKHR",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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;