Skip to content

Commit

Permalink
radv: semaphore hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
airlied committed Jun 8, 2017
1 parent c705caa commit 84b19d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/amd/vulkan/radv_device.c
Expand Up @@ -102,6 +102,10 @@ static const VkExtensionProperties instance_extensions[] = {
.extensionName = VK_KHX_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME,
.specVersion = 1,
},
{
.extensionName = VK_KHX_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME,
.specVersion = 1,
},
};

static const VkExtensionProperties common_device_extensions[] = {
Expand Down Expand Up @@ -3307,3 +3311,11 @@ VkResult radv_GetMemoryFdPropertiesKHX(VkDevice _device,
*/
return VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX;
}

VkResult radv_GetSemaphoreFdKHX(VkDevice device,
VkSemaphore semaphore,
VkExternalSemaphoreHandleTypeFlagsKHX handleType,
int *pFd)
{
return VK_SUCCESS;
}
3 changes: 3 additions & 0 deletions src/amd/vulkan/radv_entrypoints_gen.py
Expand Up @@ -45,6 +45,9 @@
'VK_KHX_external_memory_capabilities',
'VK_KHX_external_memory',
'VK_KHX_external_memory_fd',
'VK_KHX_external_semaphore_capabilities',
'VK_KHX_external_semaphore',
'VK_KHX_external_semaphore_fd'
]

# We generate a static hash table for entry point lookup
Expand Down

0 comments on commit 84b19d0

Please sign in to comment.