From: Kristian H. Kristensen Date: Tue, 7 Apr 2020 15:57:10 +0000 (-0700) Subject: turnip: Stub out VK_KHR_external_{fence,semaphore}_fd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97578c69e86383fee6030fb9b7333734c670cd5c;p=mesa.git turnip: Stub out VK_KHR_external_{fence,semaphore}_fd Part-of: --- diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 67269457f08..6312a84bff9 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -1447,6 +1447,44 @@ tu_DeviceWaitIdle(VkDevice _device) return VK_SUCCESS; } +VkResult +tu_ImportSemaphoreFdKHR(VkDevice _device, + const VkImportSemaphoreFdInfoKHR *pImportSemaphoreFdInfo) +{ + tu_stub(); + + return VK_SUCCESS; +} + +VkResult +tu_GetSemaphoreFdKHR(VkDevice _device, + const VkSemaphoreGetFdInfoKHR *pGetFdInfo, + int *pFd) +{ + tu_stub(); + + return VK_SUCCESS; +} + +VkResult +tu_ImportFenceFdKHR(VkDevice _device, + const VkImportFenceFdInfoKHR *pImportFenceFdInfo) +{ + tu_stub(); + + return VK_SUCCESS; +} + +VkResult +tu_GetFenceFdKHR(VkDevice _device, + const VkFenceGetFdInfoKHR *pGetFdInfo, + int *pFd) +{ + tu_stub(); + + return VK_SUCCESS; +} + VkResult tu_EnumerateInstanceExtensionProperties(const char *pLayerName, uint32_t *pPropertyCount, diff --git a/src/freedreno/vulkan/tu_extensions.py b/src/freedreno/vulkan/tu_extensions.py index ea549967105..b06ce88a673 100644 --- a/src/freedreno/vulkan/tu_extensions.py +++ b/src/freedreno/vulkan/tu_extensions.py @@ -78,6 +78,8 @@ EXTENSIONS = [ Extension('VK_EXT_external_memory_dma_buf', 1, True), Extension('VK_EXT_image_drm_format_modifier', 1, False), Extension('VK_EXT_transform_feedback', 1, True), + Extension('VK_KHR_external_semaphore_fd', 1, True), + Extension('VK_KHR_external_fence_fd', 1, True), ] class VkVersion: