[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
This commit is contained in:
Vlad Zahorodnii 2020-02-11 19:56:18 +02:00
parent 49b5e227fb
commit b94a78c47d

View file

@ -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"))) {