projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f40d656
)
drm: virtio: fix virtio_gpu_cursor_formats
author
Laurent Vivier
<lvivier@redhat.com>
Wed, 5 Apr 2017 08:09:15 +0000
(10:09 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 6 Apr 2017 13:23:57 +0000
(15:23 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio/virtgpu_plane.c
index 372c91cc85334cbcaac971d49311f3094a396462..adcdbd0abef692d46bf574dcf1c5c130b3510e4d 100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_plane.c
+++ b/
drivers/gpu/drm/virtio/virtgpu_plane.c
@@
-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)