summaryrefslogtreecommitdiff
path: root/gralloc4/src
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-07-19 23:13:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-07-19 23:13:26 +0000
commitfde1f74d4d28f70cd0d5fe406b01cde16948e561 (patch)
tree9d40156777ce9d542bd14c322e3d098b3c7cba51 /gralloc4/src
parenta67810d68d3d8fa25de6b38bb489af6fef6810a6 (diff)
parent40edcc319f59d4a2d22b73b4978d963195165b51 (diff)
downloadgchips-fde1f74d4d28f70cd0d5fe406b01cde16948e561.tar.gz
Merge "Allow realigning YV12 to satisfy C2's stride assumptions" into sc-dev
Diffstat (limited to 'gralloc4/src')
-rw-r--r--gralloc4/src/core/mali_gralloc_bufferallocation.cpp4
1 files changed, 2 insertions, 2 deletions
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