ui: add XBGR8888 and ABGR8888 in drm_format_pixman_map
authorKen Xue <Ken.Xue@amd.com>
Thu, 14 Sep 2023 01:31:51 +0000 (09:31 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 3 Oct 2023 11:04:56 +0000 (15:04 +0400)
commit7db57a73f66463488fbd53fe5f9589de49534fe8
tree516e116d70b5886f3b070ef39d5d25d4ae6354b5
parent65d7ceb49b434d578cee61467c009cb16a794b16
ui: add XBGR8888 and ABGR8888 in drm_format_pixman_map

Android uses XBGR8888 and ABGR8888 as default scanout buffer, But qemu
does not support them for qemu_pixman_to_drm_format conversion within
virtio_gpu_create_dmabuf for virtio gpu.

so, add those 2 formats into drm_format_pixman_map.

Signed-off-by: Ken Xue <Ken.Xue@amd.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20230914013151.805363-1-Ken.Xue@amd.com>
include/ui/qemu-pixman.h
ui/qemu-pixman.c