In the latest xf86-video-intel release, the developers made some changes to TearFree which lead to choppy fullscreen OpenGL with KWin in compositing mode. I filled a bug for xf86-video-intel and they say it's KWin issue: https://bugs.freedesktop.org/show_bug.cgi?id=80349 After applying this patch to KWin, everything is smooth again. Reproducible: Always Steps to Reproduce: 1. Install xf86-video-intel 2.99.912 2. Download http://rghost.ru/56512098. This is 60 fps video 3. mplayer -vo gl output.mp4 or mpv --vo opengl output.mp4 4. Watch video in windowed mode. It should play very smooth 5. Run mplayer/mpv again. Press "f" to go fullscreen Actual Results: Video in fullscreen is as smooth as in windowed mode Expected Results: Video is choppy
From the bug report: Kwin makes a buggy micro-optimisation: diff --git a/kwin/libkwineffects/kwinglplatform.cpp b/kwin/libkwineffects/kwinglplatform.cpp index ae2f459..c41b9df 100644 --- a/kwin/libkwineffects/kwinglplatform.cpp +++ b/kwin/libkwineffects/kwinglplatform.cpp @@ -808,7 +808,6 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) m_supportsGLSL = false; m_limitedGLSL = m_supportsGLSL && m_chipClass < I965; - m_looseBinding = true; if (m_chipClass < I915) { m_recommendedCompositor = XRenderCompositing; -------- I'll run this tomorrow on my Intel system
Messed up actual result / expected result, should be vice versa.
Git commit e8241313fc979aefafc8c2a0207570d6394f1580 by Martin Gräßlin. Committed on 23/06/2014 at 05:45. Pushed by graesslin into branch 'master'. [libkwineffects] Require strict binding for intel driver According to driver devs it's a "buggy micro-optimisation", see https://bugs.freedesktop.org/show_bug.cgi?id=80349#c1 REVIEW: 118893 M +2 -1 libkwineffects/kwinglplatform.cpp http://commits.kde.org/kwin/e8241313fc979aefafc8c2a0207570d6394f1580
Here's an unfuzzed patch against kde-workspace-4.11.10: http://pkgs.fedoraproject.org/cgit/kde-workspace.git/tree/kde-workspace-4.11.10-kwin-intel-kde%23336589.patch (We need this in Fedora Rawhide, where we now have the new intel driver.)
It's included in ArchLinux, btw.
*** Bug 338434 has been marked as a duplicate of this bug. ***
Git commit 04157f13de8d9b3028bca3a1832276ba96ae45fd by Martin Gräßlin. Committed on 22/08/2014 at 05:37. Pushed by graesslin into branch 'KDE/4.11'. [libkwineffects] Require strict binding for intel driver According to driver devs it's a "buggy micro-optimisation", see https://bugs.freedesktop.org/show_bug.cgi?id=80349#c1 Backport from kwin.git e8241313fc979aefafc8c2a0207570d6394f1580 M +2 -1 kwin/libkwineffects/kwinglplatform.cpp http://commits.kde.org/kde-workspace/04157f13de8d9b3028bca3a1832276ba96ae45fd
*** Bug 338472 has been marked as a duplicate of this bug. ***