diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-27 03:39:44 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-27 03:39:44 +0000 |
commit | 8d2e0c8dd72e36233786640f0cc74164330d7567 (patch) | |
tree | a37135091395f228de4e87d59be80f76b092974e | |
parent | c35827368c883065157e5cb31cb1a7988aa3c59b (diff) | |
parent | 20a21b993ee7b061868e10a153e9118db094c98e (diff) | |
download | gchips-android12-d1-s6-release.tar.gz |
Merge cherrypicks of [15919265, 15919266, 15919267, 15919014, 15919015, 15919110, 15919205, 15919286] into sc-d1-releaseandroid-12.0.0_r15android-12.0.0_r14android-12.0.0_r13android-12.0.0_r12android12-d1-s6-releaseandroid12-d1-s5-releaseandroid12-d1-release
Change-Id: I65b760b0ffebbfe9bd142e0808e59b11ba63bc8a
-rw-r--r-- | gralloc4/src/core/mali_gralloc_bufferallocation.cpp | 4 |
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 fe2349b..e928637 100644 --- a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp +++ b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp @@ -446,7 +446,7 @@ static void update_yv12_stride(int8_t plane, { if (plane == 0) { - *byte_stride = GRALLOC_ALIGN(luma_stride, stride_align); + *byte_stride = GRALLOC_ALIGN(luma_stride, GRALLOC_ALIGN(stride_align, 32)); } else { @@ -456,7 +456,7 @@ static void update_yv12_stride(int8_t plane, * 2. Multiple of 16px (16 bytes) */ *byte_stride = luma_stride / 2; - assert(*byte_stride == GRALLOC_ALIGN(*byte_stride, stride_align / 2)); + assert(*byte_stride == GRALLOC_ALIGN(*byte_stride, GRALLOC_ALIGN(stride_align / 2, 16))); assert(*byte_stride & 15 == 0); } } |