Change ERROR -> PERF_WARN in vkAcquireNextImageKHR().
authorIan Elliott <ian@lunarg.com>
Fri, 25 Sep 2015 00:33:16 +0000 (18:33 -0600)
committerIan Elliott <ian@lunarg.com>
Fri, 25 Sep 2015 17:10:23 +0000 (11:10 -0600)
layers/swapchain.cpp
layers/swapchain.h

index 00286576dc1de7dd2805c6da0fea26f5dbbffdbb..37864dae97fcccb5efbb213ee10ee4f854a1e42b 100644 (file)
@@ -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__);
         }
     }
 
index 1f99b6f4812a90de3f8ebc68631b9472d50e3604..e6b2a55ad2cc1afb69bcb8f6215ea45403e2cecc 100644 (file)
@@ -53,6 +53,9 @@ typedef struct _layer_data {
 #define LOG_ERROR(objType, type, obj, fmt, ...)                         \
     log_msg(&mydata.report_data, VK_DBG_REPORT_ERROR_BIT, (objType),    \
             (uint64_t) (obj), 0, 0, LAYER_NAME, (fmt), __VA_ARGS__)
+#define LOG_PERF_WARNING(objType, type, obj, fmt, ...)                  \
+    log_msg(&mydata.report_data, VK_DBG_REPORT_PERF_WARN_BIT, (objType), \
+            (uint64_t) (obj), 0, 0, LAYER_NAME, (fmt), __VA_ARGS__)
 
 
 // NOTE: The following struct's/typedef's are for keeping track of