Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99748ab6 authored by Laurent Vivier's avatar Laurent Vivier Committed by Gerd Hoffmann
Browse files

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: default avatarLaurent Vivier <lvivier@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170405080915.823-1-lvivier@redhat.com


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent f40d6560
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -39,7 +39,11 @@ static const uint32_t virtio_gpu_formats[] = {
};

static const uint32_t virtio_gpu_cursor_formats[] = {
#ifdef __BIG_ENDIAN
	DRM_FORMAT_BGRA8888,
#else
	DRM_FORMAT_ARGB8888,
#endif
};

uint32_t virtio_gpu_translate_format(uint32_t drm_fourcc)