From 9ce7b8a401a133b864d6ddcb41d460af4ff857bc Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 25 Jun 2019 20:20:13 +0300 Subject: [PATCH] vk: Add LLVM8 warning for RADV drivers --- rpcs3/Emu/RSX/VK/VKHelpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index 0e76e4b004..9d5478396b 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -529,6 +529,14 @@ private: get_physical_device_features(allow_extensions); LOG_NOTICE(RSX, "Found vulkan-compatible GPU: '%s' running on driver %s", get_name(), get_driver_version()); + + if (get_driver_vendor() == driver_vendor::RADV && + get_name().find("LLVM 8") != std::string::npos) + { + // Serious driver bug causing black screens + // See https://bugs.freedesktop.org/show_bug.cgi?id=110970 + LOG_FATAL(RSX, "RADV drivers have a major driver bug with LLVM 8 resulting in no visual output. Upgrade to LLVM 9 version of mesa to avoid this issue."); + } } std::string get_name() const