Bug 1131793 - Disable SurfaceTexture detach on Mali r=jgilbert
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -584,7 +584,8 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
|
||||
"Imagination",
|
||||
"nouveau",
|
||||
"Vivante",
|
||||
"VMware, Inc."
|
||||
"VMware, Inc.",
|
||||
"ARM"
|
||||
};
|
||||
|
||||
mVendor = GLVendor::Other;
|
||||
|
||||
@@ -154,6 +154,7 @@ enum class GLVendor {
|
||||
Nouveau,
|
||||
Vivante,
|
||||
VMware,
|
||||
ARM,
|
||||
Other
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user