turnip: Put VK_KHR_external_fence_fd stubs back
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 26 Jun 2020 23:29:15 +0000 (16:29 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 26 Jun 2020 23:29:15 +0000 (16:29 -0700)
tu_ImportFenceFdKHR is used by tu_AcquireImageANDROID, which may or
may not work, but let's at least keep things compiling until somebody
has time to tie up the loose ends on the Android side.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5670>

src/freedreno/vulkan/tu_device.c

index 57905740eefef831f00d32fcd75937a06ebf36d5..a328f1164cd9d513947079c3895ee626edba1394 100644 (file)
@@ -2483,6 +2483,25 @@ tu_GetMemoryFdPropertiesKHR(VkDevice _device,
    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_ImportSemaphoreFdKHR(VkDevice _device,
                         const VkImportSemaphoreFdInfoKHR *pImportSemaphoreFdInfo)