Ignore incorrect vulkan valdiation error.

Change-Id: Idcc598af6b3859d33b674402c973438ddfdd632b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282038
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
Greg Daniel 2020-04-07 10:08:03 -04:00 committed by Skia Commit-Bot
parent 0022f5cf1b
commit dcd2964e6f

View File

@ -110,6 +110,13 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugReportCallback(
const char* pMessage,
void* pUserData) {
if (flags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {
// TODO: The current SDK is not ignoring the sampler parameter on VkDescriptorImageInfo
// for vkUpdateDescriptorSets when the descriptor is immutable. Thus it complains about
// having a sampler when using a multi-planer format that doesn't have a mutable view. When
// the next SDK update happens see if this has been fixed.
if (strstr(pMessage, "VUID-VkDescriptorImageInfo-sampler-0156")) {
return VK_FALSE;
}
SkDebugf("Vulkan error [%s]: code: %d: %s\n", pLayerPrefix, messageCode, pMessage);
print_backtrace();
SkDEBUGFAIL("Vulkan debug layer error");