vk_instance: Enable additional debug tagging if crash diagnostics is enabled. ()

This commit is contained in:
squidbus 2025-01-05 14:45:54 -08:00 committed by GitHub
parent 8f33dfe4f1
commit c0f57df4e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions
src/video_core/renderer_vulkan

View file

@ -92,13 +92,15 @@ std::string GetReadableVersion(u32 version) {
Instance::Instance(bool enable_validation, bool enable_crash_diagnostic) Instance::Instance(bool enable_validation, bool enable_crash_diagnostic)
: instance{CreateInstance(Frontend::WindowSystemType::Headless, enable_validation, : instance{CreateInstance(Frontend::WindowSystemType::Headless, enable_validation,
enable_crash_diagnostic)}, enable_crash_diagnostic)},
physical_devices{EnumeratePhysicalDevices(instance)} {} physical_devices{EnumeratePhysicalDevices(instance)},
crash_diagnostic{enable_crash_diagnostic} {}
Instance::Instance(Frontend::WindowSDL& window, s32 physical_device_index, Instance::Instance(Frontend::WindowSDL& window, s32 physical_device_index,
bool enable_validation /*= false*/, bool enable_crash_diagnostic /*= false*/) bool enable_validation /*= false*/, bool enable_crash_diagnostic /*= false*/)
: instance{CreateInstance(window.GetWindowInfo().type, enable_validation, : instance{CreateInstance(window.GetWindowInfo().type, enable_validation,
enable_crash_diagnostic)}, enable_crash_diagnostic)},
physical_devices{EnumeratePhysicalDevices(instance)} { physical_devices{EnumeratePhysicalDevices(instance)},
crash_diagnostic{enable_crash_diagnostic} {
if (enable_validation) { if (enable_validation) {
debug_callback = CreateDebugCallback(*instance); debug_callback = CreateDebugCallback(*instance);
} }

View file

@ -81,7 +81,7 @@ public:
/// Returns true when a known debugging tool is attached. /// Returns true when a known debugging tool is attached.
bool HasDebuggingToolAttached() const { bool HasDebuggingToolAttached() const {
return has_renderdoc || has_nsight_graphics; return crash_diagnostic || has_renderdoc || has_nsight_graphics;
} }
/// Returns true if anisotropic filtering is supported /// Returns true if anisotropic filtering is supported
@ -338,6 +338,7 @@ private:
u32 subgroup_size{}; u32 subgroup_size{};
bool tooling_info{}; bool tooling_info{};
bool debug_utils_supported{}; bool debug_utils_supported{};
bool crash_diagnostic{};
bool has_nsight_graphics{}; bool has_nsight_graphics{};
bool has_renderdoc{}; bool has_renderdoc{};
}; };