virtgpu: set linear bind flag on YVU420_ANDROID buffers
To work around the fact that virgl doesn't have a YVU420_ANDROID format,
gbm interprets linear YVU420 buffers as YVU420_ANDROID buffers. Set the
linear flag in the virtio_gpu backend to take advantage of this.
BUG=b:175833552,b:172389166
TEST=android.media.cts.VideoDecoderRotationTest
Change-Id: I89667db6eacba7bb860e0d90af3a8925573caa74
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2596704
Tested-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
2 files changed