[PATCH 1/3] drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats

Gerd Hoffmann kraxel at redhat.com
Tue Jul 12 08:31:57 UTC 2022


  Hi,

> So adding support for bigendian formats to the driver shouldn't be
> much of a problem.  The vram will continue to run in little endian
> RGB565, the shadow will be big endian RGB565, and the driver must
> byteswap when copying.

For completeness: The other obvious option (for fbcon) would be to
handle the byteswapping in the generic drm fbdev emulation, which
would have the advantage that it would be more generic and would
not depend on the drm driver supporting the bigendian rgb565
formats ...

take care,
  Gerd



More information about the dri-devel mailing list