From 40edcc319f59d4a2d22b73b4978d963195165b51 Mon Sep 17 00:00:00 2001 From: Ankit Goyal Date: Sat, 19 Jun 2021 01:22:24 +0800 Subject: Allow realigning YV12 to satisfy C2's stride assumptions Fix: 191275214 Test: Video playback using SW decoder Change-Id: Ieec84b51ba2cbf689555262e9ccd180f22df55ad --- gralloc4/src/core/mali_gralloc_bufferallocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gralloc4/src') diff --git a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp index 7defdde..53bbb6f 100644 --- a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp +++ b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp @@ -47,8 +47,8 @@ /* Always CPU align for Exynos */ #define CAN_SKIP_CPU_ALIGN 0 -/* Do not realign YV12 formats for Exynos */ -#define REALIGN_YV12 0 +/* Realign YV12 format so that chroma stride is half of luma stride */ +#define REALIGN_YV12 1 /* TODO: set S10B format align in BoardConfig.mk */ #define BOARD_EXYNOS_S10B_FORMAT_ALIGN 64 -- cgit v1.2.3