From 88e56f630b7ee6db8c07e34387c9ebbdb6de5535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 1 Jul 2017 18:14:52 +0200 Subject: [PATCH] Raise minimum required Mesa version to 10.0 Summary: The currently minimum required Mesa version was 8.0 and KWin had special caseing for Mesa 9.1. This is no longer realistic, no distribution provides such an old Mesa version. So let's increase the version a little bit. Overview of Mesa versions supported by distributions: * Debian stable (stretch): 13.0 * Debian oldstable (jessie): 10.3 * Debian oldstable backports: 13.0 * Debian oldoldstable (wheezy): 8.0 * Ubuntu 16.04 LTS: 11.2 * Ubuntu 16.04 LTS updates: 12.0 * Ubuntu 17.04: 17.0 * openSUSE Tumbleweed: 17.1 * openSUSE Leap 42.2: 11.2 * openSUSE Leap 42.3: 17.0 * Arch: 17.1 * Fedora 24: 12.0 * Fedora 25: 17.0 * Fedora 26: 17.1 Test Plan: Compiles Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D6462 --- lanczosfilter.cpp | 3 --- scene_opengl.cpp | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 66345c6a8b..fbd4a393ba 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -78,9 +78,6 @@ void LanczosFilter::init() // The lanczos filter is reported to be broken with the Intel driver prior SandyBridge if (gl->driver() == Driver_Intel && gl->chipClass() < SandyBridge) return; - // Broken on Intel chips with Mesa 9.1 - BUG 313613 - if (gl->driver() == Driver_Intel && gl->mesaVersion() >= kVersionNumber(9, 1) && gl->mesaVersion() < kVersionNumber(9, 2)) - return; // also radeon before R600 has trouble if (gl->isRadeon() && gl->chipClass() < R600) return; diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 79e79066e8..711802ad4f 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -407,8 +407,8 @@ SceneOpenGL::SceneOpenGL(OpenGLBackend *backend, QObject *parent) init_ok = false; return; // error } - if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(8, 0)) { - qCCritical(KWIN_CORE) << "KWin requires at least Mesa 8.0 for OpenGL compositing."; + if (glPlatform->isMesaDriver() && glPlatform->mesaVersion() < kVersionNumber(10, 0)) { + qCCritical(KWIN_CORE) << "KWin requires at least Mesa 10.0 for OpenGL compositing."; init_ok = false; return; }