diff options
author | 2016-05-13 10:45:59 +0800 | |
---|---|---|
committer | 2016-05-13 12:20:18 +0800 | |
commit | ede02ac245b5f2aa1139d6cb0e2dc7c0f8f290d2 (patch) | |
tree | 87846dda36a3f572d8f589fe7b1f7997f8aaa120 | |
parent | 40c07a1d002561fc8db987ec30d890b041fb6336 (diff) |
vulkan: check flags for early debug report callbacks
We have a different path to invoke early (that is, vkCreateInstance) debug
report callbacks. Check for "flags" in this path as well.
Bug: 28753666
Change-Id: I49b5f2920b38ffdf69036f352166ae3b0aca62c5
-rw-r--r-- | vulkan/libvulkan/debug_report.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vulkan/libvulkan/debug_report.cpp b/vulkan/libvulkan/debug_report.cpp index 2a34613180..fbb5458674 100644 --- a/vulkan/libvulkan/debug_report.cpp +++ b/vulkan/libvulkan/debug_report.cpp @@ -80,7 +80,8 @@ void DebugReportLogger::Message(VkDebugReportFlagsEXT flags, reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT*>( instance_pnext_); while (info) { - if (info->sType == VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT) { + if (info->sType == VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT && + (info->flags & flags) != 0) { info->pfnCallback(flags, object_type, object, location, message_code, layer_prefix, message, info->pUserData); |