render/vulkan: put vulkan debug logs on WLR_DEBUG

Previously, VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT was commented
out. Instead, subscribe to vulkan message severity based on
wlr_log_get_verbosity. This allows vulkan validation layer messages to
be printed, instead of being completely swallowed no matter what.
This commit is contained in:
khyperia 2025-12-23 09:40:57 +01:00
parent 9119b8aa85
commit 72ece9dddf
2 changed files with 18 additions and 6 deletions

View file

@ -2570,7 +2570,7 @@ struct wlr_renderer *wlr_vk_renderer_create_with_drm_fd(int drm_fd) {
wlr_log(WLR_INFO, "The vulkan renderer is only experimental and "
"not expected to be ready for daily use");
wlr_log(WLR_INFO, "Run with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation "
"to enable the validation layer");
"and a log level of WLR_DEBUG to enable the validation layer");
struct wlr_vk_instance *ini = vulkan_instance_create(default_debug);
if (!ini) {