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
VideoBackends:Vulkan: Migrate to VK_EXT_debug_utils #11219
Conversation
a9b3ab5
to
5893964
Compare
|
Also, Dolphin should probably automatically enable the log channel HOST_GPU when validation layers are enabled in the settings. |
5893964
to
adef2e8
Compare
|
Is anyone else going to look at this or is it good to go? |
adef2e8
to
b52ef71
Compare
b52ef71
to
0a3ef99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me apart from a few minor things. I haven't tested extensively (only tested on my laptop, and renderdoc+vulkan isn't behaving nicely for me), but I did still see some host GPU messages.
The former is deprecated and pretty much all modern drivers support VK_EXT_debug_utils. Android drivers dont support it. On those drivers, we use the implementation provided by the validation layers.
0a3ef99
to
19a4653
Compare
|
Fixed the nits. |
|
For my machine (AMD rx480 on slightly older drivers) this seems to break validation layers. Reverting allows me to see them again. It's possible there was an improper installation when I upgraded last, I will try and find some time to look at this in more detail. |
| VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT | | ||
| VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT | | ||
| VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Lets report the performance messages twice and completely ignore the validation errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, that's pretty bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR to fix it is up.
Dolphin currently uses VK_EXT_debug_report, which is deprecated. The replacement VK_EXT_debug_utils is widely supported by desktop drivers but not on Android. Thankfully the Vulkan validation layers provide an implementation and the extension is only useful with the validation layers (at least the way Dolphin uses it)
https://developer.android.com/ndk/guides/graphics/validation-layer#enable_the_debug_callback