render/vulkan: remove hardcoded validation layers

Users should use the VK_INSTANCE_LAYERS env var to set layers at runtime
This commit is contained in:
Simon Zeni 2022-11-11 15:54:07 -05:00 committed by Simon Ser
parent 1c4a625fe3
commit f3ba14e491
2 changed files with 4 additions and 10 deletions

View file

@ -1938,6 +1938,8 @@ error:
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");
// NOTE: we could add functionality to allow the compositor passing its
// name and version to this function. Just use dummies until then,