mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
anv: Implement VK_KHX_external_semaphore_capabilities
This just stubs things out. Real external semaphore support will come with VK_KHX_external_semaphore_fd. Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
65aa89e75f
commit
298e054d0c
3 changed files with 18 additions and 0 deletions
|
|
@ -331,6 +331,10 @@ static const VkExtensionProperties global_extensions[] = {
|
|||
.extensionName = VK_KHX_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME,
|
||||
.specVersion = 1,
|
||||
},
|
||||
{
|
||||
.extensionName = VK_KHX_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME,
|
||||
.specVersion = 1,
|
||||
},
|
||||
};
|
||||
|
||||
static const VkExtensionProperties device_extensions[] = {
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ SUPPORTED_EXTENSIONS = [
|
|||
'VK_KHX_external_memory',
|
||||
'VK_KHX_external_memory_capabilities',
|
||||
'VK_KHX_external_memory_fd',
|
||||
'VK_KHX_external_semaphore_capabilities',
|
||||
'VK_KHX_multiview',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -533,3 +533,16 @@ void anv_DestroySemaphore(
|
|||
|
||||
vk_free2(&device->alloc, pAllocator, semaphore);
|
||||
}
|
||||
|
||||
void anv_GetPhysicalDeviceExternalSemaphorePropertiesKHX(
|
||||
VkPhysicalDevice physicalDevice,
|
||||
const VkPhysicalDeviceExternalSemaphoreInfoKHX* pExternalSemaphoreInfo,
|
||||
VkExternalSemaphorePropertiesKHX* pExternalSemaphoreProperties)
|
||||
{
|
||||
switch (pExternalSemaphoreInfo->handleType) {
|
||||
default:
|
||||
pExternalSemaphoreProperties->exportFromImportedHandleTypes = 0;
|
||||
pExternalSemaphoreProperties->compatibleHandleTypes = 0;
|
||||
pExternalSemaphoreProperties->externalSemaphoreFeatures = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue