diff options
author | 2016-05-03 12:06:21 +0800 | |
---|---|---|
committer | 2016-05-06 09:31:36 +0800 | |
commit | 2e6736699471dbe7ec185667240089dcbccdd9bd (patch) | |
tree | c23dbba95a16e7ec2eeed3144dd8c3efa13bdf54 /vulkan/libvulkan | |
parent | b3055f34650cd066a349e1e8cba294b05513ef2e (diff) |
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
Diffstat (limited to 'vulkan/libvulkan')
-rw-r--r-- | vulkan/libvulkan/debug_report.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vulkan/libvulkan/debug_report.cpp b/vulkan/libvulkan/debug_report.cpp index 988655e64f..24784071e7 100644 --- a/vulkan/libvulkan/debug_report.cpp +++ b/vulkan/libvulkan/debug_report.cpp @@ -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 |