mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
Check to ensure pMessageIdName is not null
Previously we were checking against a list of skipped messages using both the pMessageIdName and pMessage from a Vulkan debug info callback. The spec, however, indicates that the pMessageIdName may be NULL. This change checks to see if that value is NULL before doing any further checks, and if so always indicates that the message should not be skipped. (No other code in Dawn references the pMessageIdName.) See the appropriate page of the Vulkan spec for details: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkDebugUtilsMessengerCallbackDataEXT.html Change-Id: Idd8bf312db31d6cea8e6ce42a47254f182b1070e Bug: chromium:1411047 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117594 Kokoro: Kai Ninomiya <kainino@chromium.org> Kokoro: Brandon Jones <bajones@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
6af2e30030
commit
a5f8e8e34a
@ -127,6 +127,11 @@ static constexpr ICD kICDs[] = {
|
||||
|
||||
// Suppress validation errors that are known. Returns false in that case.
|
||||
bool ShouldReportDebugMessage(const char* messageId, const char* message) {
|
||||
// pMessageIdName may be NULL
|
||||
if (messageId == nullptr) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (const SkippedMessage& msg : kSkippedMessages) {
|
||||
if (strstr(messageId, msg.messageId) != nullptr &&
|
||||
strstr(message, msg.messageContents) != nullptr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user