diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-09-22 16:40:27 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-27 09:08:44 +1300 |
| commit | 6a441764d9b4f423860811e1be23d6afdc4a5bc2 (patch) | |
| tree | 30430fb6af7843e336fe7edcc96a77bf49b1c1d2 /layers/swapchain.cpp | |
| parent | 24ef81b5f1ce35b94050521724ba2750bcc85b1d (diff) | |
| download | usermoji-6a441764d9b4f423860811e1be23d6afdc4a5bc2.tar.xz | |
layers: Move ACQUIRE_NO_SYNC check from Swapchain to Core Validation
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/swapchain.cpp')
| -rw-r--r-- | layers/swapchain.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
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<uint64_t>(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); |
