}
}
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__);
}
}
#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