Chromium Code Reviews
Description[Android] Add workaround to unbind gpu memory buffer only on NVIDIA
For gralloc backed gpu memory buffer on Android, it is undefined whether
locking for read/write while the buffer is bound to a texture is
allowed.
On nvidia devices (eg 2012 nexus 7), lock without unbind will lead to
deadlocks in the driver (crbug.com/264096).
However on other nexus gpu vendors (img, arm, qualcomm), unbind is very
expensive since it flushes the gpu pipeline. And vendors have advised
that lock while bound is allowed and is the right solution to this
slowness, as long as the texture is eventually recycled or deleted.
Add a workaround for nvidia to only unbind in GLImage::DidUseTexImage.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234740
Patch Set 1 #Patch Set 2 : Update a more comments #
Total comments: 2
Patch Set 3 : SetReleaseAfterUse #
Total comments: 8
Patch Set 4 : address Kaan's comments #Patch Set 5 : Rename in json #Patch Set 6 : comma #
Total comments: 8
Patch Set 7 : Address Reveman's comments #
Messages
Total messages: 17 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||