turnip: Stub out VK_KHR_external_{fence,semaphore}_fd
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 7 Apr 2020 15:57:10 +0000 (08:57 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 18:44:21 +0000 (18:44 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4478>

src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_extensions.py

index 67269457f08a87750ef746346b22a382d68ec3bb..6312a84bff9d2fd11ced9269ab50494d56fe4752 100644 (file)
@@ -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,
index ea5499671059b50ef0f82742447370a89dea510c..b06ce88a6730d8661d38b71259865cef62322a56 100644 (file)
@@ -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: