Bug 1131793 - Disable SurfaceTexture detach on Mali r=jgilbert

This commit is contained in:
James Willcox
2015-02-13 16:59:03 -06:00
parent da8f353828
commit 0a9b93bb83
3 changed files with 7 additions and 3 deletions

View File

@@ -129,9 +129,11 @@ void
AndroidSurfaceTexture::UpdateCanDetach()
{
// The API for attach/detach only exists on 16+, and PowerVR has some sort of
// fencing issue.
// fencing issue. Additionally, attach/detach seems to be busted on at least some
// Mali adapters (400MP2 for sure, bug 1131793)
mCanDetach = AndroidBridge::Bridge()->GetAPIVersion() >= 16 &&
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::Imagination);
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::Imagination) &&
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::ARM /* Mali */);
}
bool

View File

@@ -584,7 +584,8 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
"Imagination",
"nouveau",
"Vivante",
"VMware, Inc."
"VMware, Inc.",
"ARM"
};
mVendor = GLVendor::Other;

View File

@@ -154,6 +154,7 @@ enum class GLVendor {
Nouveau,
Vivante,
VMware,
ARM,
Other
};