Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e673669 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

vulkan: avoid duplicated app messages

When vkDebugReportMessageEXT is called, every component (layer,
vulkan::driver, or hal) supporting the extension knows how to handle it.
But only one of them should handle it.

Bug: 28120066
Change-Id: I4e746b80e0920c2c63f0aceceba1601536c6236d
parent b3055f34
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -132,10 +132,11 @@ void DebugReportMessageEXT(VkInstance instance,
        GetData(instance).driver.DebugReportMessageEXT(
            instance, flags, object_type, object, location, message_code,
            layer_prefix, message);
    } else {
        GetData(instance).debug_report_callbacks.Message(
            flags, object_type, object, location, message_code, layer_prefix,
            message);
    }
    GetData(instance).debug_report_callbacks.Message(flags, object_type, object,
                                                     location, message_code,
                                                     layer_prefix, message);
}

}  // namespace driver