linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/udl: Add ARGB8888 as a format
@ 2024-02-27 22:19 Douglas Anderson
  2024-02-27 23:26 ` Dmitry Baryshkov
  2024-03-06 12:07 ` Thomas Zimmermann
  0 siblings, 2 replies; 11+ messages in thread
From: Douglas Anderson @ 2024-02-27 22:19 UTC (permalink / raw)
  To: dri-devel
  Cc: Rob Clark, Javier Martinez Canillas, Douglas Anderson,
	Daniel Vetter, Dave Airlie, David Airlie, Maarten Lankhorst,
	Maxime Ripard, Maíra Canal, Sean Paul, Thomas Zimmermann,
	Ville Syrjälä,
	linux-kernel

Even though the UDL driver converts to RGB565 internally (see
pixel32_to_be16() in udl_transfer.c), it advertises XRGB8888 for
compatibility. Let's add ARGB8888 to that list.

This makes UDL devices work on ChromeOS again after commit
c91acda3a380 ("drm/gem: Check for valid formats"). Prior to that
commit things were "working" because we'd silently treat the ARGB8888
that ChromeOS wanted as XRGB8888.

Fixes: c91acda3a380 ("drm/gem: Check for valid formats")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/gpu/drm/udl/udl_modeset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c
index 7702359c90c2..0f8d3678770e 100644
--- a/drivers/gpu/drm/udl/udl_modeset.c
+++ b/drivers/gpu/drm/udl/udl_modeset.c
@@ -253,6 +253,7 @@ static int udl_handle_damage(struct drm_framebuffer *fb,
 static const uint32_t udl_primary_plane_formats[] = {
 	DRM_FORMAT_RGB565,
 	DRM_FORMAT_XRGB8888,
+	DRM_FORMAT_ARGB8888,
 };
 
 static const uint64_t udl_primary_plane_fmtmods[] = {
-- 
2.44.0.rc1.240.g4c46232300-goog


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

end of thread, other threads:[~2024-03-07  1:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 22:19 [PATCH] drm/udl: Add ARGB8888 as a format Douglas Anderson
2024-02-27 23:26 ` Dmitry Baryshkov
2024-03-05 16:41   ` Doug Anderson
2024-03-06 12:07 ` Thomas Zimmermann
2024-03-06 14:49   ` Rob Clark
2024-03-06 15:06     ` Ville Syrjälä
2024-03-06 15:37       ` Rob Clark
2024-03-06 23:24         ` Ville Syrjälä
2024-03-07  1:39           ` Rob Clark
2024-03-06 15:05   ` Doug Anderson
2024-03-06 15:33     ` Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).