From da989b59143869a5c01cc923f5e75f1598d78191 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Thu, 24 Sep 2015 18:33:16 -0600 Subject: Change ERROR -> PERF_WARN in vkAcquireNextImageKHR(). --- layers/swapchain.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'layers/swapchain.cpp') diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 00286576..37864dae 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -928,17 +928,20 @@ VK_LAYER_EXPORT VkResult VKAPI vkAcquireNextImageKHR(VkDevice device, VkSwapchai } } if (imagesOwnedByApp >= (pSwapchain->imageCount - 1)) { - skipCall |= LOG_ERROR(VK_OBJECT_TYPE_SWAPCHAIN_KHR, swapchain, - "VkSwapchainKHR", - "%s() called when the application already " - "owns all presentable images in this " - "swapchain except for the image currently " - "being displayed. This call to %s() cannot " - "succeed unless another thread calls the " - "vkQueuePresentKHR() function in order to " - "release ownership of one of the presentable " - "images of this swapchain.", - __FUNCTION__, __FUNCTION__); + skipCall |= LOG_PERF_WARNING(VK_OBJECT_TYPE_SWAPCHAIN_KHR, + swapchain, + "VkSwapchainKHR", + "%s() called when the application " + "already owns all presentable images " + "in this swapchain except for the " + "image currently being displayed. " + "This call to %s() cannot succeed " + "unless another thread calls the " + "vkQueuePresentKHR() function in " + "order to release ownership of one of " + "the presentable images of this " + "swapchain.", + __FUNCTION__, __FUNCTION__); } } -- cgit v1.2.3