OSDN Git Service

mediatek: Fix the metadata for R8
authorRicky Liang <jcliang@chromium.org>
Tue, 24 Sep 2019 05:15:55 +0000 (13:15 +0800)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 25 Sep 2019 17:43:09 +0000 (10:43 -0700)
The R8 format should be configured with LINEAR_METADATA.

BUG=b:141328294
TEST=manually on Kukui

Change-Id: I612e78d28b63960428a6dce04104c3266b124a23
Reviewed-on: https://chromium-review.googlesource.com/1816204
Tested-by: Ricky Liang <jcliang@chromium.org>
Commit-Ready: Ricky Liang <jcliang@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
mediatek.c

index 6319570..270d810 100644 (file)
@@ -54,7 +54,7 @@ static int mediatek_init(struct driver *drv)
        drv_add_combinations(drv, texture_source_formats, ARRAY_SIZE(texture_source_formats),
                             &LINEAR_METADATA, BO_USE_TEXTURE_MASK);
 
-       drv_add_combination(drv, DRM_FORMAT_R8, &metadata, BO_USE_SW_MASK | BO_USE_LINEAR);
+       drv_add_combination(drv, DRM_FORMAT_R8, &LINEAR_METADATA, BO_USE_SW_MASK | BO_USE_LINEAR);
        /*
         * Chrome uses DMA-buf mmap to write to YV12 buffers, which are then accessed by the
         * Video Encoder Accelerator (VEA). It could also support NV12 potentially in the future.