mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
33bba1e24c
commit
7429cdd2f1
@ -299,6 +299,16 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
|
||||
|
||||
// Don't evaluate any special cases if we're checking the downloaded blocklist.
|
||||
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.
|
||||
if (aFeature == nsIGfxInfo::FEATURE_OPENGL_LAYERS ||
|
||||
aFeature == nsIGfxInfo::FEATURE_WEBGL_OPENGL ||
|
||||
|
Loading…
Reference in New Issue
Block a user