Bug 1292326 - Disable layers acceleration by default when using mesa software rasterizers. r=jrmuizel

MozReview-Commit-ID: 9H1XiuPpw15

--HG--
extra : rebase_source : 1d28690ecbdbab5bd96caed1772f712fd54b0f92
This commit is contained in:
Andrew Comminos 2016-08-04 16:14:27 -04:00
parent 33bba1e24c
commit 7429cdd2f1

View File

@ -299,6 +299,16 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
// Don't evaluate any special cases if we're checking the downloaded blocklist. // Don't evaluate any special cases if we're checking the downloaded blocklist.
if (!aDriverInfo.Length()) { if (!aDriverInfo.Length()) {
// Blacklist software GL implementations from using layers acceleration.
// On the test infrastructure, we'll force-enable layers acceleration.
if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS &&
(mIsLlvmpipe || mIsOldSwrast))
{
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
aFailureId = "FEATURE_FAILURE_SOFTWARE_GL";
return NS_OK;
}
// Only check features relevant to Linux. // Only check features relevant to Linux.
if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS || if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS ||
aFeature == nsIGfxInfo::FEATURE_WEBGL_OPENGL || aFeature == nsIGfxInfo::FEATURE_WEBGL_OPENGL ||