Commit 286d4852 authored by Fredrik Höglund's avatar Fredrik Höglund Committed by Martin Flöser

Don't enable loose binding with Gallium drivers in Mesa 7.10.

It's currently broken because of a regression in the mesa state tracker.

FIXED-IN: 4.6.0
BUG: 259872

svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213870
parent 248ab65f
......@@ -716,6 +716,10 @@ void GLPlatform::detect()
m_limitedGLSL = m_supportsGLSL && m_chipClass < I965;
}
// Loose binding is broken with Gallium drivers in Mesa 7.10
if (isGalliumDriver() && mesaVersion() >= kVersionNumber(7, 10))
m_looseBinding = false;
}
static void print(const QString &label, const QString &setting)
......@@ -835,6 +839,11 @@ bool GLPlatform::isMesaDriver() const
return mesaVersion() > 0;
}
bool GLPlatform::isGalliumDriver() const
{
return galliumVersion() > 0;
}
bool GLPlatform::isRadeon() const
{
return m_chipClass >= R100 && m_chipClass <= UnknownRadeon;
......
......@@ -218,6 +218,11 @@ public:
*/
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.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment