From d29b6cdb59f25ef1c99b6d64805e743690956ef8 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 16 Oct 2019 17:23:57 +0300 Subject: [PATCH] vk: Proper workaround for VEGA float16_t bugs --- rpcs3/Emu/RSX/VK/VKHelpers.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index ba12a6b72c..df5388d7b1 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -589,13 +589,11 @@ private: LOG_FATAL(RSX, "RADV drivers have a major driver bug with LLVM 8.0.0 resulting in no visual output. Upgrade to LLVM version 8.0.1 or greater to avoid this issue."); } -#ifndef _WIN32 - if (get_name().find("VEGA") != std::string::npos) + if (get_chip_class() == chip_class::AMD_vega) { - LOG_WARNING(RSX, "float16_t does not work correctly on VEGA hardware for both RADV and AMDVLK. Using float32_t fallback instead."); + LOG_WARNING(RSX, "float16_t does not work correctly on VEGA hardware on all drivers. Using float32_t fallback instead."); shader_types_support.allow_float16 = false; } -#endif } std::string get_name() const