Bug 1131793 - Disable SurfaceTexture detach on Mali r=jgilbert
This commit is contained in:
@@ -129,9 +129,11 @@ void
|
|||||||
AndroidSurfaceTexture::UpdateCanDetach()
|
AndroidSurfaceTexture::UpdateCanDetach()
|
||||||
{
|
{
|
||||||
// The API for attach/detach only exists on 16+, and PowerVR has some sort of
|
// 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 &&
|
mCanDetach = AndroidBridge::Bridge()->GetAPIVersion() >= 16 &&
|
||||||
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::Imagination);
|
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::Imagination) &&
|
||||||
|
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::ARM /* Mali */);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
@@ -584,7 +584,8 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
|
|||||||
"Imagination",
|
"Imagination",
|
||||||
"nouveau",
|
"nouveau",
|
||||||
"Vivante",
|
"Vivante",
|
||||||
"VMware, Inc."
|
"VMware, Inc.",
|
||||||
|
"ARM"
|
||||||
};
|
};
|
||||||
|
|
||||||
mVendor = GLVendor::Other;
|
mVendor = GLVendor::Other;
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ enum class GLVendor {
|
|||||||
Nouveau,
|
Nouveau,
|
||||||
Vivante,
|
Vivante,
|
||||||
VMware,
|
VMware,
|
||||||
|
ARM,
|
||||||
Other
|
Other
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user