OSDN Git Service

mediatek: Change android flexible format to allocate YVU420 buffer
authorHirokazu Honda <hiroh@chromium.org>
Fri, 23 Aug 2019 05:31:31 +0000 (14:31 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Sun, 25 Aug 2019 08:10:35 +0000 (01:10 -0700)
crrev.com/c/1716864 made gralloc allocae NV12 buffer with the android flexible
format, DRM_FORMAT_FLEX_YCbCr_420_888. However, the change broke many CTS tests.
This partially reverts the commit. The allocated buffer fromat becomes YVU420.

BUG=chromium:987185
BUG=b:139714614
Cq-Depend: chromium:1767680
Change-Id: I9fcde88cff79fac2655fb627418b371b314077c1
Reviewed-on: https://chromium-review.googlesource.com/1767450
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Commit-Ready: Hirokazu Honda <hiroh@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
mediatek.c

index fd0c126..199d3cf 100644 (file)
@@ -243,7 +243,7 @@ static uint32_t mediatek_resolve_format(struct driver *drv, uint32_t format, uin
                if (use_flags & (BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE))
                        return DRM_FORMAT_NV12;
 #endif
-               return DRM_FORMAT_NV12;
+               return DRM_FORMAT_YVU420;
        default:
                return format;
        }