From 96f72e2352616f0c5e28a80551e35d2fd16d4fe4 Mon Sep 17 00:00:00 2001 From: Gustavo Parreira Date: Sat, 15 Oct 2022 17:23:55 +0100 Subject: [PATCH] fix: Look for NAVI in device name for AMD GPUs --- src/gl/gl_hud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/gl_hud.cpp b/src/gl/gl_hud.cpp index e1fc3ea3..0888719b 100644 --- a/src/gl/gl_hud.cpp +++ b/src/gl/gl_hud.cpp @@ -131,7 +131,8 @@ void imgui_create(void *ctx) SPDLOG_DEBUG("deviceName: {}", deviceName); sw_stats.deviceName = deviceName; if (deviceName.find("Radeon") != std::string::npos - || deviceName.find("AMD") != std::string::npos){ + || deviceName.find("AMD") != std::string::npos + || deviceName.find("NAVI") != std::string::npos) { vendorID = 0x1002; } else { vendorID = 0x10de;