mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-24 07:39:52 +00:00
Fix loader logging of VUIDs
The loader was logging some VUID failures and it was sending them to the general message output. Send the information also to the validation stream to make sure that if anyone enables validation filtering they will still see those errors
This commit is contained in:
parent
3d95ca6166
commit
b30b2aec84
@ -121,7 +121,9 @@ void loader_log(const struct loader_instance *inst, VkFlags msg_type, int32_t ms
|
||||
if ((msg_type & VULKAN_LOADER_PERF_BIT) != 0) {
|
||||
type = VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT;
|
||||
} else if ((msg_type & VULKAN_LOADER_VALIDATION_BIT) != 0) {
|
||||
type = VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT;
|
||||
// For loader logging, if it's a validation message, we still want to also keep the general flag as well
|
||||
// so messages of type validation can still be triggered for general message callbacks.
|
||||
type = VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT | VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT;
|
||||
} else {
|
||||
type = VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user