Fix chipset detection with r300g

svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213841
This commit is contained in:
Fredrik Höglund 2011-01-11 20:06:47 +00:00 committed by Martin Gräßlin
parent cf03487331
commit 83fd472bb3

View file

@ -587,7 +587,8 @@ void GLPlatform::detect()
// Sample renderer string: Gallium 0.4 on AMD RV740 // Sample renderer string: Gallium 0.4 on AMD RV740
const QList<QByteArray> tokens = m_renderer.split(' '); const QList<QByteArray> tokens = m_renderer.split(' ');
m_galliumVersion = parseVersionString(tokens.at(1)); m_galliumVersion = parseVersionString(tokens.at(1));
m_chipset = tokens.at(3) == "AMD" ? tokens.at(4) : tokens.at(3); m_chipset = (tokens.at(3) == "AMD" || tokens.at(3) == "ATI") ?
tokens.at(4) : tokens.at(3);
// R300G // R300G
if (m_vendor == "X.Org R300 Project") { if (m_vendor == "X.Org R300 Project") {