All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/virtio: add ARGB8888 support for primary planes
@ 2026-09-30 13:27 Dorinda Bassey
  2026-09-30 13:41 ` sashiko-bot
  2026-09-30 15:03 ` Thomas Zimmermann
  0 siblings, 2 replies; 8+ messages in thread
From: Dorinda Bassey @ 2026-09-30 13:27 UTC (permalink / raw)
  To: dri-devel, virtualization
  Cc: kraxel, airlied, dmitry.osipenko, slp, mhrica, gurchetansingh,
	mripard, tzimmermann, simona, linux-kernel, Dorinda Bassey

Add DRM_FORMAT_HOST_ARGB8888 to the list of supported formats for
virtio-gpu primary planes. Without this, glmark2-drm fails at
startup because it selects ARGB visual configs by default, which
don't match the XRGB-only plane capabilities. This causes
drmModeSetCrtc to fail with EINVAL.

The virtio_gpu_translate_format() function already handles
ARGB8888 translation to VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM,
so this just exposes the existing capability to userspace.

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
---
 drivers/gpu/drm/virtio/virtgpu_plane.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
index b422eba42a5f..5f0bc1b1931b 100644
--- a/drivers/gpu/drm/virtio/virtgpu_plane.c
+++ b/drivers/gpu/drm/virtio/virtgpu_plane.c
@@ -37,6 +37,7 @@
 
 static const uint32_t virtio_gpu_formats[] = {
 	DRM_FORMAT_HOST_XRGB8888,
+	DRM_FORMAT_HOST_ARGB8888,
 };
 
 static const uint32_t virtio_gpu_cursor_formats[] = {
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-11 22:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30 13:27 [PATCH] drm/virtio: add ARGB8888 support for primary planes Dorinda Bassey
2026-09-30 13:41 ` sashiko-bot
2026-09-30 15:03 ` Thomas Zimmermann
2026-09-30 16:12   ` Dorinda Bassey
2026-10-01 13:28     ` Thomas Zimmermann
2026-10-01 10:46   ` Dmitry Osipenko
2026-10-01 13:31     ` Thomas Zimmermann
2026-10-11 22:10       ` Dmitry Osipenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.