Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cros_gralloc/cros_gralloc_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ int32_t cros_gralloc_driver::allocate(const struct cros_gralloc_buffer_descripto
if (resolved_format == DRM_FORMAT_NV12)
resolved_use_flags |= BO_USE_LINEAR;

if (is_video_format(descriptor))
resolved_use_flags &= ~BO_USE_SW_READ_OFTEN;
/*
* This unmask is a backup in the case DRM_FORMAT_FLEX_IMPLEMENTATION_DEFINED is resolved
* to non-YUV formats.
Expand Down