libkwineffects: drop gallium detection

It's not used anywhere
This commit is contained in:
Xaver Hugl 2023-09-07 15:43:02 +02:00
parent 6d35a27f90
commit e401f3ff11
3 changed files with 0 additions and 28 deletions

View file

@ -151,14 +151,12 @@ void GLPlatformTest::testPriorDetect()
QCOMPARE(gl->glVersion(), Version()); QCOMPARE(gl->glVersion(), Version());
QCOMPARE(gl->glslVersion(), Version()); QCOMPARE(gl->glslVersion(), Version());
QCOMPARE(gl->mesaVersion(), Version()); QCOMPARE(gl->mesaVersion(), Version());
QCOMPARE(gl->galliumVersion(), Version());
QCOMPARE(gl->driverVersion(), Version()); QCOMPARE(gl->driverVersion(), Version());
QCOMPARE(gl->driver(), Driver_Unknown); QCOMPARE(gl->driver(), Driver_Unknown);
QCOMPARE(gl->chipClass(), UnknownChipClass); QCOMPARE(gl->chipClass(), UnknownChipClass);
QCOMPARE(gl->isMesaDriver(), false); QCOMPARE(gl->isMesaDriver(), false);
QCOMPARE(gl->isGalliumDriver(), false);
QCOMPARE(gl->isRadeon(), false); QCOMPARE(gl->isRadeon(), false);
QCOMPARE(gl->isNvidia(), false); QCOMPARE(gl->isNvidia(), false);
QCOMPARE(gl->isIntel(), false); QCOMPARE(gl->isIntel(), false);
@ -247,7 +245,6 @@ void GLPlatformTest::testDetect()
QCOMPARE(gl->glVersion(), readVersion(settingsGroup, "GLVersion")); QCOMPARE(gl->glVersion(), readVersion(settingsGroup, "GLVersion"));
QCOMPARE(gl->glslVersion(), readVersion(settingsGroup, "GLSLVersion")); QCOMPARE(gl->glslVersion(), readVersion(settingsGroup, "GLSLVersion"));
QCOMPARE(gl->mesaVersion(), readVersion(settingsGroup, "MesaVersion")); QCOMPARE(gl->mesaVersion(), readVersion(settingsGroup, "MesaVersion"));
QCOMPARE(gl->galliumVersion(), readVersion(settingsGroup, "GalliumVersion"));
QEXPECT_FAIL("amd-catalyst-radeonhd-7700M-3.1.13399", "Detects GL version instead of driver version", Continue); QEXPECT_FAIL("amd-catalyst-radeonhd-7700M-3.1.13399", "Detects GL version instead of driver version", Continue);
QCOMPARE(gl->driverVersion(), readVersion(settingsGroup, "DriverVersion")); QCOMPARE(gl->driverVersion(), readVersion(settingsGroup, "DriverVersion"));
@ -255,7 +252,6 @@ void GLPlatformTest::testDetect()
QCOMPARE(gl->chipClass(), ChipClass(settingsGroup.readEntry("ChipClass", int(UnknownChipClass)))); QCOMPARE(gl->chipClass(), ChipClass(settingsGroup.readEntry("ChipClass", int(UnknownChipClass))));
QCOMPARE(gl->isMesaDriver(), settingsGroup.readEntry("Mesa", false)); QCOMPARE(gl->isMesaDriver(), settingsGroup.readEntry("Mesa", false));
QCOMPARE(gl->isGalliumDriver(), settingsGroup.readEntry("Gallium", false));
QCOMPARE(gl->isRadeon(), settingsGroup.readEntry("Radeon", false)); QCOMPARE(gl->isRadeon(), settingsGroup.readEntry("Radeon", false));
QCOMPARE(gl->isNvidia(), settingsGroup.readEntry("Nvidia", false)); QCOMPARE(gl->isNvidia(), settingsGroup.readEntry("Nvidia", false));
QCOMPARE(gl->isIntel(), settingsGroup.readEntry("Intel", false)); QCOMPARE(gl->isIntel(), settingsGroup.readEntry("Intel", false));

View file

@ -879,13 +879,10 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface)
const QList<QByteArray> tokens = m_context->renderer().toByteArray().split(' '); const QList<QByteArray> tokens = m_context->renderer().toByteArray().split(' ');
if (m_context->renderer().contains("Gallium")) { if (m_context->renderer().contains("Gallium")) {
// Sample renderer string: Gallium 0.4 on AMD RV740 // Sample renderer string: Gallium 0.4 on AMD RV740
m_galliumVersion = Version::parseString(tokens.at(1));
m_chipset = (tokens.at(3) == "AMD" || tokens.at(3) == "ATI") ? tokens.at(4) : tokens.at(3); m_chipset = (tokens.at(3) == "AMD" || tokens.at(3) == "ATI") ? tokens.at(4) : tokens.at(3);
} else { } else {
// The renderer string does not contain "Gallium" anymore. // The renderer string does not contain "Gallium" anymore.
m_chipset = tokens.at(0); m_chipset = tokens.at(0);
// We don't know the actual version anymore, but it's at least 0.4.
m_galliumVersion = Version(0, 4, 0);
} }
// R300G // R300G
@ -1094,11 +1091,6 @@ Version GLPlatform::mesaVersion() const
return m_mesaVersion; return m_mesaVersion;
} }
Version GLPlatform::galliumVersion() const
{
return m_galliumVersion;
}
Version GLPlatform::driverVersion() const Version GLPlatform::driverVersion() const
{ {
if (isMesaDriver()) { if (isMesaDriver()) {
@ -1123,11 +1115,6 @@ bool GLPlatform::isMesaDriver() const
return mesaVersion().isValid(); return mesaVersion().isValid();
} }
bool GLPlatform::isGalliumDriver() const
{
return galliumVersion().isValid();
}
bool GLPlatform::isRadeon() const bool GLPlatform::isRadeon() const
{ {
return m_chipClass >= R100 && m_chipClass <= UnknownRadeon; return m_chipClass >= R100 && m_chipClass <= UnknownRadeon;

View file

@ -195,11 +195,6 @@ public:
*/ */
Version mesaVersion() const; Version mesaVersion() const;
/**
* Returns the Gallium version if the driver is a Gallium driver, and 0 otherwise.
*/
Version galliumVersion() const;
/** /**
* Returns the driver version. * Returns the driver version.
* *
@ -222,11 +217,6 @@ public:
*/ */
bool isMesaDriver() const; bool isMesaDriver() const;
/**
* Returns true if the driver is a Gallium driver, and false otherwise.
*/
bool isGalliumDriver() const;
/** /**
* Returns true if the GPU is a Radeon GPU, and false otherwise. * Returns true if the GPU is a Radeon GPU, and false otherwise.
*/ */
@ -393,7 +383,6 @@ private:
Version m_glslVersion; Version m_glslVersion;
Version m_mesaVersion; Version m_mesaVersion;
Version m_driverVersion; Version m_driverVersion;
Version m_galliumVersion;
bool m_looseBinding : 1; bool m_looseBinding : 1;
bool m_packInvert : 1; bool m_packInvert : 1;
bool m_supportsTimerQuery : 1; bool m_supportsTimerQuery : 1;