OSDN Git Service

msm: allow allocation of NV12 dumb buffers
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 21 May 2018 10:05:10 +0000 (19:05 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 3 Jul 2018 18:41:08 +0000 (11:41 -0700)
commit1805a9b9e300f0a9e632dc48c2f82ac764d83fdc
treefea653740876e3c1274ed685f2aebc958ace257c
parentdea0ccbaac1602e0453b79ee6c66785012b00048
msm: allow allocation of NV12 dumb buffers

Cheza's codec validation requires the ability to import external buffers
into the codec driver. However the only possible provider of such
buffers so far is the display. Make it possible to allocate dumb NV12
buffers by adding the format to the list of allowed formats, and
adjusting the requested buffers' height to include room for the UV plane
and extra padding the venus driver requires.

BUG=b:80589901
TEST=Checked that VDA unittest's TestDecodeTimeMedian passed in import
mode on Cheza.

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