vk: Unstub VkSemaphore implementation
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 21 Dec 2015 06:58:38 +0000 (22:58 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 29 Dec 2015 05:57:56 +0000 (21:57 -0800)
There really is nothing to do for us here, at least with the current
kernel interface.

src/vulkan/anv_device.c

index 90a0061dbf8e88ab695cbd81432f502cea40ff26..88515c353eea5fbb00054409ea004ae4911933ef 100644 (file)
@@ -1429,8 +1429,13 @@ VkResult anv_CreateSemaphore(
     const VkAllocationCallbacks*                pAllocator,
     VkSemaphore*                                pSemaphore)
 {
+   /* The DRM execbuffer ioctl always execute in-oder, even between different
+    * rings. As such, there's nothing to do for the user space semaphore.
+    */
+
    *pSemaphore = (VkSemaphore)1;
-   stub_return(VK_SUCCESS);
+
+   return VK_SUCCESS;
 }
 
 void anv_DestroySemaphore(
@@ -1438,7 +1443,6 @@ void anv_DestroySemaphore(
     VkSemaphore                                 semaphore,
     const VkAllocationCallbacks*                pAllocator)
 {
-   stub();
 }
 
 // Event functions