Increase runtime requirement to Mesa 8.0

Adjustment to reality. KWin has had a dependency on Mesa 8.0 for quite
some time given that it is what basically all distributions ship.

It is better to clearly state what is required. For KWin Mesa 8.0 is a
more reliable dependency as all DRI drivers which do not support DRI2
have been removed.

Packagers have been informed about this intended change some weeks ago.

REVIEW: 106799
This commit is contained in:
Martin Gräßlin 2012-10-10 08:04:36 +02:00
parent 57c27c2e0b
commit 26a9a35b2f
3 changed files with 4 additions and 8 deletions

View file

@ -63,9 +63,9 @@ void LanczosFilter::init()
if (!force && options->glSmoothScale() != 2) if (!force && options->glSmoothScale() != 2)
return; // disabled by config return; // disabled by config
// The lanczos filter is reported to be broken with the Intel driver and Mesa 7.10 // The lanczos filter is reported to be broken with the Intel driver prior SandyBridge
GLPlatform *gl = GLPlatform::instance(); GLPlatform *gl = GLPlatform::instance();
if (!force && gl->driver() == Driver_Intel && gl->mesaVersion() >= kVersionNumber(7, 10) && gl->chipClass() < SandyBridge) if (!force && gl->driver() == Driver_Intel && gl->chipClass() < SandyBridge)
return; return;
// With fglrx the ARB Shader crashes KWin (see Bug #270818 and #286795) // With fglrx the ARB Shader crashes KWin (see Bug #270818 and #286795)
if (!force && gl->driver() == Driver_Catalyst && effects->compositingType() == OpenGL1Compositing) { if (!force && gl->driver() == Driver_Catalyst && effects->compositingType() == OpenGL1Compositing) {

View file

@ -809,10 +809,6 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface)
m_looseBinding = true; m_looseBinding = true;
} }
// Loose binding is broken with Gallium drivers in Mesa 7.10
if (isGalliumDriver() && mesaVersion() == kVersionNumber(7, 10, 0))
m_looseBinding = false;
if (isSoftwareEmulation()) { if (isSoftwareEmulation()) {
// we recommend XRender // we recommend XRender
m_recommendedCompositor = XRenderCompositing; m_recommendedCompositor = XRenderCompositing;

View file

@ -158,8 +158,8 @@ SceneOpenGL::SceneOpenGL(Workspace* ws, OpenGLBackend *backend)
return; // error return; // error
} }
#endif #endif
if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(7, 10)) { if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(8, 0)) {
kError(1212) << "KWin requires at least Mesa 7.10 for OpenGL compositing."; kError(1212) << "KWin requires at least Mesa 8.0 for OpenGL compositing.";
return; return;
} }
#ifndef KWIN_HAVE_OPENGLES #ifndef KWIN_HAVE_OPENGLES