From: Philipp Knechtges <philipp-dev@knechtges.com>
Date: Mon, 16 Jan 2012 19:43:11 +0000
Subject: whitelisting llvmpipe for gl compositing
X-Git-Url: http://quickgit.kde.org/?p=clones%2Fkde-workspace%2Fknechtges%2Fpersonal.git&a=commitdiff&h=c1cbbe012b86fb62f11a5e03dd4432adcde03abe
---
whitelisting llvmpipe for gl compositing
---
--- a/kwin/effects/blur/blur.cpp
+++ b/kwin/effects/blur/blur.cpp
@@ -156,6 +156,10 @@ bool BlurEffect::enabledByDefault()
// fglrx supports only ARB shaders and those tend to crash KWin (see Bug #270818 and #286795)
return false;
}
+ if (gl->driver() == Driver_Llvmpipe) {
+ // llvmpipe is too slow for blur
+ return false;
+ }
return true;
}
--- a/kwin/libkwineffects/kwinglplatform.cpp
+++ b/kwin/libkwineffects/kwinglplatform.cpp
@@ -884,7 +884,7 @@ bool GLPlatform::isIntel() const
bool GLPlatform::isSoftwareEmulation() const
{
- return m_driver == Driver_Softpipe || m_driver == Driver_Swrast || m_driver == Driver_Llvmpipe;
+ return m_driver == Driver_Softpipe || m_driver == Driver_Swrast;
}
} // namespace KWin