OSDN Git Service

vgem: support DRM_FORMAT_YVU420_ANDROID
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 16 Mar 2017 20:05:45 +0000 (13:05 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 21 Mar 2017 23:47:39 +0000 (16:47 -0700)
commitd5f8e44e19d7e384365046c6f3a13de518d47fe4
tree88afb1366024a888b03dccdfba2eeffcbeccd504
parent507f5ddba23c76e4b4150b488c542b75fcf4d648
vgem: support DRM_FORMAT_YVU420_ANDROID

drv_dumb_bo_create function only allocates single-plane formats at the
moment, even though the vgem driver has a resolve format hook that
leads to DRM_FORMAT_YVU420_ANDROID. Let's allocate a single buffer
that's big enough to support DRM_FORMAT_YVU420_ANDROID, as drm_gralloc
does. Note videos don't work with Android emulation, but they never
did with drm_gralloc and that's a separate problem.

BUG=chromium:616275
TEST=no regressions with gbmtest when running qemu + trybots

Change-Id: I9b081dbe553fe1159feaa7eed104ac340c59e41b
Reviewed-on: https://chromium-review.googlesource.com/456404
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
helpers.c
vgem.c