-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loader messages for environment variables are confusing and don't follow VK_LOADER_DEBUG
or vk_loader_settings.json
settings
#1580
Comments
I am 98% sure that those messages are because whatever application is being run is adding a Debug Utils messenger with the Error & Warning flags. I cannot reproduce this in any other fashion on linux and windows. |
vulkaninfo is setting up a Debug Utils messenger? |
Yes, vulkaninfo does create a debug report object. Not debug utils but the effect is the same. |
Ok then I think think it would be useful if the loader would report itself what layers are find using |
I looked at
|
Yes, the loader creates that log message. The loader then calls the debug report callback that Vulkaninfo setup, and the callback makes the call to |
So there are a type of log message filtered by I am not understanding this. Why only some messages goes to the Debug Utils messenger? |
The Vulkaninfo debug report (not utils in this case, but debug utils has the same behavior) callback was setup with only warning and error level messages. When the loader logs anything, it checks to see if the message level matches what the callbacks want. So in loader_log, the loader doesn't call the callback if the message isn't a warning or error. |
Ahhhh, so WARNING: [Loader Message] Code 0 : env var 'VK_INSTANCE_LAYERS' defined and adding layers should appear twice, when VK_LOADER_DEBUG with warning or error is set? I think that's the case, I'll double check tomorrow. |
Yep! That would help explain why loader logs are so verbose sometimes. |
Closing this issue as I colelcted all the log improvements in this issue: #1595 |
The issue was experienced on Windows.
stderr_log
is set empty invk_loader_settings.json
, andVK_LOADER_DEBUG
is unset (I tried to set it nothing too) I am still getting these loader messages:VK_LOADER_LAYERS_ENABLE
and 'VK_INSTANCE_LAYERS', I will only get:If I unset 'VK_INSTANCE_LAYERS', I am getting:
The messages are not consistent which is also unnecessary confusing.
The text was updated successfully, but these errors were encountered: