[PATCH 0/7] drm/gud: Add some more pixel formats
Noralf Trønnes
noralf at tronnes.org
Tue Aug 17 12:29:10 UTC 2021
Hi,
This adds some more pixel formats and gives the user the ability to
choose the xrgb8888 emulation format.
Pixel formats:
R8: For greyscale e-ink displays
RGB332: For e-ink displays and some niche displays
RGB888: Same color depth as XRGB8888 but the smaller buffer gives better
fps
Noralf.
Noralf Trønnes (7):
drm/fourcc: Add R8 to drm_format_info
drm/format-helper: Add drm_fb_xrgb8888_to_rgb332()
drm/format-helper: Add drm_fb_xrgb8888_to_rgb888()
drm/gud: Add GUD_PIXEL_FORMAT_R8
drm/gud: Add GUD_PIXEL_FORMAT_RGB332
drm/gud: Add GUD_PIXEL_FORMAT_RGB888
drm/gud: Add module parameter to control emulation: xrgb8888
drivers/gpu/drm/drm_format_helper.c | 85 +++++++++++++++++++++++++++++
drivers/gpu/drm/drm_fourcc.c | 1 +
drivers/gpu/drm/gud/gud_drv.c | 19 ++++++-
drivers/gpu/drm/gud/gud_internal.h | 12 ++++
drivers/gpu/drm/gud/gud_pipe.c | 6 ++
include/drm/drm_format_helper.h | 4 ++
include/drm/gud.h | 6 +-
7 files changed, 128 insertions(+), 5 deletions(-)
--
2.32.0
More information about the dri-devel
mailing list