[PATCH v2 0/3] drm/format-helper: Support conversion to XRGB8888

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Support conversion from RGB565 and RGB888 to XRGB8888. This enables
simpledrm to work with framebuffers of such formats.

UEFI and/or Grub will usually set 32-bit output in XRGB8888 format.
The issue can be reproduced by enabling simpledrm and requesting a
console framebuffer of different format on the kernel command line;
for example

  nomodeset video=1024x768-16

  or

  nomodeset video=1024x768-24

Conversion helpers will do nothing in this case.

Make this work by implementing the rsp conversion helpers. Also add
a warning about unsupported format conversions. The patchset should
also enable odd userspace configurations, such as running Xorg with
16- or 24-bit color depth.

v2:
	* use helpers for struct drm_rect (Javier)
	* improve commit messages (Javier)

Thomas Zimmermann (3):
  drm/format-helper: Print warning on missing format conversion
  drm/format-helper: Add RGB888-to-XRGB8888 conversion
  drm/format-helper: Add RGB565-to-XRGB8888 conversion

 drivers/gpu/drm/drm_format_helper.c | 95 +++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)


base-commit: 0e7deff6446a4ba2c75f499a0bfa80cd6a15c129
prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
-- 
2.36.0




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux