From a8f4a20b24b83a4d455cc56faf51216655678c0f Mon Sep 17 00:00:00 2001 From: Niram7777 Date: Tue, 30 Sep 2025 16:21:48 +0200 Subject: [PATCH] VK Wayland RenderDoc log incompatible (#3675) --- documents/Debugging/Debugging.md | 7 +++++++ src/video_core/renderer_vulkan/vk_platform.cpp | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/documents/Debugging/Debugging.md b/documents/Debugging/Debugging.md index d2eda61b7..8bb4b8fbd 100644 --- a/documents/Debugging/Debugging.md +++ b/documents/Debugging/Debugging.md @@ -11,6 +11,13 @@ This document covers information about debugging, troubleshooting and reporting This section will guide you through setting up tools for debugging the emulator. This list will likely expand as more tools and platforms receive consistent setups. +
+Linux + +RenderDoc doesn't work with Wayland, so to use it you have to run the emulator with `SDL_VIDEODRIVER=x11` set. + +
+
Windows and Visual Studio diff --git a/src/video_core/renderer_vulkan/vk_platform.cpp b/src/video_core/renderer_vulkan/vk_platform.cpp index 79f802cf6..4a6c13de0 100644 --- a/src/video_core/renderer_vulkan/vk_platform.cpp +++ b/src/video_core/renderer_vulkan/vk_platform.cpp @@ -86,6 +86,11 @@ vk::SurfaceKHR CreateSurface(vk::Instance instance, const Frontend::WindowSDL& e UNREACHABLE(); } } else if (window_info.type == Frontend::WindowSystemType::Wayland) { + if (Config::isRdocEnabled()) { + LOG_ERROR(Render_Vulkan, + "RenderDoc is not compatible with Wayland, use an X11 window instead."); + } + const vk::WaylandSurfaceCreateInfoKHR wayland_ci = { .display = static_cast(window_info.display_connection), .surface = static_cast(window_info.render_surface),