mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 766251 - 5/5 - update Adreno WebGL blacklisting - r=jrmuizel
This commit is contained in:
parent
b8f187cb77
commit
725493a9df
@ -607,20 +607,6 @@ WebGLContext::InitAndValidateGL()
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef MOZ_JAVA_COMPOSITOR
|
||||
// bug 736123, blacklist WebGL on Adreno
|
||||
bool forceEnabled = Preferences::GetBool("webgl.force-enabled", false);
|
||||
if (!forceEnabled) {
|
||||
int renderer = gl->Renderer();
|
||||
if (renderer == gl::GLContext::RendererAdreno200 ||
|
||||
renderer == gl::GLContext::RendererAdreno205)
|
||||
{
|
||||
GenerateWarning("WebGL blocked on this Adreno driver!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
mMinCapability = Preferences::GetBool("webgl.min_capability_mode", false);
|
||||
mDisableExtensions = Preferences::GetBool("webgl.disable-extensions", false);
|
||||
|
||||
|
@ -327,6 +327,18 @@ GfxInfo::GetFeatureStatusImpl(PRInt32 aFeature,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Don't evaluate special cases when evaluating the downloaded blocklist.
|
||||
if (aDriverInfo.IsEmpty()) {
|
||||
if (aFeature == FEATURE_WEBGL_OPENGL) {
|
||||
if (mRenderer.Find("Adreno 200") != -1 ||
|
||||
mRenderer.Find("Adreno 205") != -1)
|
||||
{
|
||||
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return GfxInfoBase::GetFeatureStatusImpl(aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, &os);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user