From c8e0b52ec44ce147c6e2517d727fe77f5c1d4cdf Mon Sep 17 00:00:00 2001 From: HeYue Date: Sat, 12 Oct 2024 14:16:27 +0800 Subject: [PATCH] Remove the cpu read often flag for video Tracked-On: OAM-126435 Signed-off-by: HeYue --- cros_gralloc/cros_gralloc_driver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cros_gralloc/cros_gralloc_driver.cc b/cros_gralloc/cros_gralloc_driver.cc index 00747e85..d1e473fc 100644 --- a/cros_gralloc/cros_gralloc_driver.cc +++ b/cros_gralloc/cros_gralloc_driver.cc @@ -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.