minigbm/virtgpu: make all blobs cross device

ARCVM's wayland compositor typically handles scanout buffers, but it can
fall back to texture buffers when the format doesn't support scanout.
These buffers can still end up being sent over virtwl, so any blob
resources with Android HW_COMPOSITOR usage need to have the
VIRTGPU_BLOB_FLAG_USE_CROSS_DEVICE set. In particular, this affects
output of SW decoders, as such buffers have no other HW usage flags set.

The simplest solution is to set the cross device flag on all blobs. This
can be revisited later if we add wider support for blobs.

BUG=b:194691227
TEST=android.mediav2.cts.CodecDecoderSurfaceTest on 5.10-arcvm kernel

Change-Id: I9baf65096eb2cb1f7d1190a52765254d7b0a2356
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3068681
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: David Stevens <stevensd@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
1 file changed