vkQueueWaitIdle and vkDeviceWaitIdle as noops
Added the implementation for vkDeviceWaitIdle, which calls
into a noop vkQueueWaitIdle for now, until we have a non
noop implementation of Fence objects.
This allows many tests to run properly.
Bug b/117835459
Change-Id: I39be52f9462d87591bbb0bccee1e9e41b5a744b9
Reviewed-on: https://swiftshader-review.googlesource.com/c/24048
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Vulkan/VkQueue.cpp b/src/Vulkan/VkQueue.cpp
index cb704ae..1a7f0fc 100644
--- a/src/Vulkan/VkQueue.cpp
+++ b/src/Vulkan/VkQueue.cpp
@@ -58,11 +58,19 @@
}
}
- // FIXME (b\117835459): signal the fence only once the work is completed
+ // FIXME (b/117835459): signal the fence only once the work is completed
if(fence != VK_NULL_HANDLE)
{
vk::Cast(fence)->signal();
}
}
+void Queue::waitIdle()
+{
+ // equivalent to submitting a fence to a queue and waiting
+ // with an infinite timeout for that fence to signal
+
+ // FIXME (b/117835459): implement once we have working fences
+}
+
} // namespace vk
\ No newline at end of file