From b94a78c47d944b5e550acf8be7816abd55826bb8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 11 Feb 2020 19:56:18 +0200 Subject: [PATCH] [libkwineffects] Detect more AMD GPUs with GFX9 (Vega) chips Summary: ASIC family names are taken from Mesa's source code. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D27176 --- libkwineffects/kwinglplatform.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libkwineffects/kwinglplatform.cpp b/libkwineffects/kwinglplatform.cpp index 25e8acfea8..0a0ebd1cf7 100644 --- a/libkwineffects/kwinglplatform.cpp +++ b/libkwineffects/kwinglplatform.cpp @@ -221,7 +221,10 @@ static ChipClass detectRadeonClass(const QByteArray &chipset) if (chipset.contains("VEGA10") || chipset.contains("VEGA12") || chipset.contains("VEGA20") || - chipset.contains("RAVEN")) { + chipset.contains("RAVEN") || + chipset.contains("RAVEN2") || + chipset.contains("RENOIR") || + chipset.contains("ARCTURUS")) { return Vega; } @@ -885,6 +888,9 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) m_renderer.contains("VEGA12") || m_renderer.contains("VEGA20") || m_renderer.contains("RAVEN") || + m_renderer.contains("RAVEN2") || + m_renderer.contains("RENOIR") || + m_renderer.contains("ARCTURUS") || m_renderer.contains("NAVI10") || m_renderer.contains("NAVI12") || m_renderer.contains("NAVI14"))) {