From 6a441764d9b4f423860811e1be23d6afdc4a5bc2 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 22 Sep 2016 16:40:27 +1200 Subject: layers: Move ACQUIRE_NO_SYNC check from Swapchain to Core Validation Signed-off-by: Chris Forbes --- layers/swapchain.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'layers/swapchain.cpp') diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 5aca7f68..4ca28a6d 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -2089,13 +2089,6 @@ VKAPI_ATTR VkResult VKAPI_CALL AcquireNextImageKHR(VkDevice device, VkSwapchainK "vkAcquireNextImageKHR() called even though the %s extension was not enabled for this VkDevice.", VK_KHR_SWAPCHAIN_EXTENSION_NAME); } - if ((semaphore == VK_NULL_HANDLE) && (fence == VK_NULL_HANDLE)) { - skip_call |= - log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, - reinterpret_cast(device), __LINE__, SWAPCHAIN_NO_SYNC_FOR_ACQUIRE, swapchain_layer_name, - "vkAcquireNextImageKHR() called with both the semaphore and fence parameters set to VK_NULL_HANDLE (at " - "least one should be used)."); - } SwpSwapchain *pSwapchain = NULL; { auto it = my_data->swapchainMap.find(swapchain); -- cgit v1.2.3