am a91a220a: only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
Merge commit 'a91a220ae435832209702ec59040036d276b63ca' * commit 'a91a220ae435832209702ec59040036d276b63ca': only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
This commit is contained in:
commit
1f16706e84
@ -238,8 +238,14 @@ int gralloc_lock(gralloc_module_t const* module,
|
||||
|
||||
// if requesting sw write for non-framebuffer handles, flag for
|
||||
// flushing at unlock
|
||||
|
||||
const uint32_t pmemMask =
|
||||
private_handle_t::PRIV_FLAGS_USES_PMEM |
|
||||
private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP;
|
||||
|
||||
if ((usage & GRALLOC_USAGE_SW_WRITE_MASK) &&
|
||||
!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
|
||||
(hnd->flags & pmemMask) &&
|
||||
!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
|
||||
hnd->flags |= private_handle_t::PRIV_FLAGS_NEEDS_FLUSH;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user