OSDN Git Service

minigbm: virtio: restrict formats supported without 3D
authorDominik Behr <dbehr@chromium.org>
Wed, 9 Oct 2019 22:43:52 +0000 (15:43 -0700)
committerCommit Bot <commit-bot@chromium.org>
Thu, 12 Dec 2019 06:36:24 +0000 (06:36 +0000)
commit6e6dc49707737d0578617f89cb01bb585f9b00c3
treef7643453c48375625c77f45c691cd9fe324643d6
parent20e4a932ee4f2aa90191d0b4ad2e1b16bf0a798a
minigbm: virtio: restrict formats supported without 3D

Upstream virtio drm commit "drm/virtio: fix DRM_FORMAT_* handling" severely
restricts supported formats and strictly enforces 32bpp dumb buffers.
Therefore now we only support XRGB8888 for scanout, ARGB8888 for cursor,
ARGB8888 for rendering. Also, we pretend all buffers are 32bpp when allocating
as dumb buffers.

BUG=none
TEST=tast run 127.0.0.1:9222 webrtc.RTCPeerConnection.vp8

Change-Id: I6225a9cb3c49f0850c6d94b2d12efaf9a33b149e
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1849773
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
drv.h
helpers.c
helpers.h
virtio_gpu.c