drm: virtio: fix virtio_gpu_cursor_formats
authorLaurent Vivier <lvivier@redhat.com>
Wed, 5 Apr 2017 08:09:15 +0000 (10:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Apr 2017 13:23:57 +0000 (15:23 +0200)
commit99748ab64fcc857837acfd754b530487a490edb5
tree43c0763e7556e10f8b4cc532da8700efebb4acff
parentf40d6560eba65b2a2b84805d2927fed96978669a
drm: virtio: fix virtio_gpu_cursor_formats

When we use virtio-vga with a big-endian guest,
the mouse pointer disappears.

To fix that, on big-endian use DRM_FORMAT_BGRA8888
instead of DRM_FORMAT_ARGB8888.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170405080915.823-1-lvivier@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_plane.c