OSDN Git Service

minigbm: align multi-planar formats to 16
authorAlexandre Courbot <acourbot@chromium.org>
Wed, 30 Aug 2017 05:37:36 +0000 (14:37 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 30 Aug 2017 20:04:22 +0000 (13:04 -0700)
commit6a8828492f4252a7c125a984823599bd65e3cb03
tree77e160c2d7f8e1c8a9d08e5772c46a49843ba44c
parent27a7e6a24709564e18c3382d0aeda0b40c7ae03b
minigbm: align multi-planar formats to 16

libva 1.8.3 makes it a hard requirement that multi-planar surfaces are
vertically aligned to 16. Enforce this rule at allocation time.

BUG=b:65084476
TEST=checked that b:65084476 was not reproducible with this patch and
that all multi-planar surfaces are aligned to 16.

Change-Id: Id31055df81ba43130f3f45282db104753fb6e700
Reviewed-on: https://chromium-review.googlesource.com/642429
Commit-Ready: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
i915.c