cros_gralloc: restrict DRM_FORMAT_MTISP_SXYZW10 to non-scanout

BUG=b:271382698
TEST=cts

Change-Id: Ia81decf01c3254bc61887e2070d9307d6f1f82c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4317163
Auto-Submit: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Dawn Han <dawnhan@google.com>
Reviewed-by: Lina Versace <chadversary@chromium.org>
Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
Yiwei Zhang 2023-03-07 18:36:49 +00:00
parent fa8ea877d3
commit 7997ad203b

View file

@ -177,6 +177,7 @@ bool cros_gralloc_driver::get_resolved_format_and_use_flags(
struct combination *combo;
if (mt8183_camera_quirk_ && (descriptor->use_flags & BO_USE_CAMERA_READ) &&
!(descriptor->use_flags & BO_USE_SCANOUT) &&
descriptor->drm_format == DRM_FORMAT_FLEX_IMPLEMENTATION_DEFINED) {
*out_use_flags = descriptor->use_flags;
*out_format = DRM_FORMAT_MTISP_SXYZW10;