Support VK_KHR_swapchain_maintenance1

Update:
1. Json file.
2. README file.
3. WSI Layer code.

Signed-off-by: Nir.Ekhauz <nir.ekhauz@arm.com>
Change-Id: I3881090238804f70a88fefbd0a3232faf5181305
This commit is contained in:
Nir Ekhauz 2025-10-16 15:02:36 +00:00 committed by Rosen Zhelev
parent 8f90584f20
commit 9053ee1b74
6 changed files with 23 additions and 5 deletions

View file

@ -33,6 +33,7 @@ implements the following extensions:
* VK_KHR_present_id2
* VK_KHR_swapchain_mutable_format (For Headless and Wayland only)
* VK_KHR_present_wait2
* VK_KHR_swapchain_maintenance1
## Building

View file

@ -47,6 +47,13 @@
"vkReleaseSwapchainImagesEXT"
]
},
{
"name": "VK_KHR_swapchain_maintenance1",
"spec_version": "1",
"entrypoints": [
"vkReleaseSwapchainImagesKHR"
]
},
{
"name": "VK_EXT_present_timing",
"spec_version": "1",

View file

@ -670,6 +670,15 @@ wsi_layer_vkGetDeviceProcAddr(VkDevice device, const char *funcName) VWL_API_POS
GET_PROC_ADDR(vkReleaseSwapchainImagesEXT);
}
/* VK_KHR_swapchain_maintenance1 */
if (device_data.is_device_extension_enabled(VK_KHR_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME))
{
if (!strcmp(funcName, "vkReleaseSwapchainImagesKHR"))
{
return (PFN_vkVoidFunction)&wsi_layer_vkReleaseSwapchainImagesEXT;
}
}
/* VK_KHR_present_wait */
if (device_data.is_device_extension_enabled(VK_KHR_PRESENT_WAIT_EXTENSION_NAME))
{

View file

@ -469,8 +469,9 @@ private:
GetBufferMemoryRequirements2) \
EP(GetImageSparseMemoryRequirements2KHR, VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME, VK_API_VERSION_1_1, \
false, GetImageSparseMemoryRequirements2) \
/* VK_EXT_swapchain_maintenance1 */ \
EP(ReleaseSwapchainImagesEXT, VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME, VK_API_VERSION_1_1, false, ) \
/* VK_KHR_swapchain_maintenance1 */ \
EP(ReleaseSwapchainImagesEXT, VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME, API_VERSION_MAX, false, \
ReleaseSwapchainImagesKHR) \
/* VK_EXT_calibrated_timestamps */ \
EP(GetCalibratedTimestampsEXT, VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME, API_VERSION_MAX, false, ) \
/* VK_KHR_calibrated_timestamps */ \

View file

@ -55,4 +55,4 @@ wsi_layer_vkReleaseSwapchainImagesEXT(VkDevice device, const VkReleaseSwapchainI
sc->release_images(pReleaseInfo->imageIndexCount, pReleaseInfo->pImageIndices);
return VK_SUCCESS;
}
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Arm Limited.
* Copyright (c) 2024-2025 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@ -35,4 +35,4 @@
VWL_VKAPI_CALL(VkResult)
wsi_layer_vkReleaseSwapchainImagesEXT(VkDevice device,
const VkReleaseSwapchainImagesInfoEXT *pReleaseInfo) VWL_API_POST;
const VkReleaseSwapchainImagesInfoEXT *pReleaseInfo) VWL_API_POST;