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/VkDevice.cpp b/src/Vulkan/VkDevice.cpp
index 78a9e9c..6b64cb0 100644
--- a/src/Vulkan/VkDevice.cpp
+++ b/src/Vulkan/VkDevice.cpp
@@ -89,6 +89,14 @@
// FIXME(b/117835459) : noop
}
+void Device::waitIdle()
+{
+ for(uint32_t i = 0; i < queueCount; i++)
+ {
+ queues[i].waitIdle();
+ }
+}
+
void Device::getDescriptorSetLayoutSupport(const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
VkDescriptorSetLayoutSupport* pSupport) const
{