OSDN Git Service

minigbm: rockchip: align to 128 bytes
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 24 Mar 2017 01:47:06 +0000 (18:47 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 31 Mar 2017 04:21:54 +0000 (21:21 -0700)
commit4c3aa42a5220d08b9bc06fa15a494b9d25e83507
tree4cc8fe8cf3861ed455cb1c6f2cb3a09d81688576
parent6423ecbecac4ca1f376d2b36bc3b7f391ea7761e
minigbm: rockchip: align to 128 bytes

cmemp_heap_partition in the mali driver checks if every plane is
64-byte aligned. Since we expose a fd for every plane in the
cros gralloc handle, we hit this case. We need to enforce this
alignment on our YV12 allocations.

BUG=chromium:616275
TEST=
android.media.cts.VideoEncoderTest#testGoogH264FlexArbitraryH

passes on veyron_minnie-cheets.

Change-Id: If6375eddd18fd216e7f07eb2cc47090d838f82ab
Reviewed-on: https://chromium-review.googlesource.com/459104
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
rockchip.c