OSDN Git Service

minigbm: virtio-gpu: check format support when adding combinations
authorJason Macnak <natsu@google.com>
Tue, 4 Feb 2020 00:36:46 +0000 (16:36 -0800)
committerCommit Bot <commit-bot@chromium.org>
Wed, 19 Feb 2020 23:34:59 +0000 (23:34 +0000)
commitddf4ec078d753c744ec82df7504e109a9a161bfd
treefa526c3039c71387f033396377cd0d94523f27ed
parent28e5ea0f88de9084bf5e99d5dc957d02533607aa
minigbm: virtio-gpu: check format support when adding combinations

Updates the minigbm virtio backend to check for renderer support
before advertising support of various combinations. This prevents
minigbm from advertising yuv/nv12 formats which are not supported
on Cuttlefish when running on GCE with Nvidia GPUs which do not
support GBM.

BUG=b:123764798
TEST=build + launch_cvd
TEST=build + launch_cvd --gpu_mode=drm_virgl

Change-Id: I8d315a590b1953e6b73144409e6f0b8d15c7d2cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2036962
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Jason Macnak <natsu@google.com>
virtio_gpu.c