All of lore.kernel.org
 help / color / mirror / Atom feed
* How to map depth=30 fb to XBGR instead of XRGB?
@ 2017-12-31  6:03 Ilia Mirkin
  2018-01-09 15:19 ` Ville Syrjälä
  0 siblings, 1 reply; 5+ messages in thread
From: Ilia Mirkin @ 2017-12-31  6:03 UTC (permalink / raw)
  To: dri-devel

NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However
drmAddFB with depth = 30 will use the mapping in
drm_mode_legacy_fb_format and pick the XRGB version of the format.

One solution is to tell userspace "stop using addfb, move to addfb2".
However I'm hoping that there's some sort of semi-clean way of dealing
with such driver eccentricities without resorting to changing
userspace.

Can the ioctl be handled in the driver perhaps? Or would it be
reasonable to add a callback in drm_driver?

Suggestions welcome.

  -ilia
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-01-09 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31  6:03 How to map depth=30 fb to XBGR instead of XRGB? Ilia Mirkin
2018-01-09 15:19 ` Ville Syrjälä
2018-01-09 15:28   ` Chris Wilson
2018-01-09 16:12     ` Daniel Vetter
2018-01-09 16:11   ` Daniel Vetter

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.