aboutsummaryrefslogtreecommitdiff
path: root/layers/swapchain.cpp
diff options
context:
space:
mode:
authorIan Elliott <ian@lunarg.com>2015-09-24 18:33:16 -0600
committerIan Elliott <ian@lunarg.com>2015-09-25 11:10:23 -0600
commitda989b59143869a5c01cc923f5e75f1598d78191 (patch)
tree3ddd0e85a47d45b250d773708f13c8d4c3a42349 /layers/swapchain.cpp
parentd0c74cf8d2c0d6be1a9389ac970c19e8d5d868a2 (diff)
downloadusermoji-da989b59143869a5c01cc923f5e75f1598d78191.tar.xz
Change ERROR -> PERF_WARN in vkAcquireNextImageKHR().
Diffstat (limited to 'layers/swapchain.cpp')
-rw-r--r--layers/swapchain.cpp25
1 files changed, 14 insertions, 11 deletions
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__);
}
}