Skip to content

Add support for low-color frame buffer formats

Geert Uytterhoeven dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 6 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- SMPTE color LUT accuracy,
- Factor out smpte color LUT,
- Restructure patches,
- Improve descriptions.
- Store number of colors for indexed formats,
- Add SMPTE pattern support for the C1 and C2 formats.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10util: Improve SMPTE color LUT accuracytests/util/pattern.c+3 -34 replies
2/10util: Factor out and optimize C8 SMPTE color LUTtests/modetest/modetest.c tests/util/pattern.c tests/util/pattern.h+76 -350 replies
3/10drm_fourcc: Add DRM_FORMAT_C[124]include/drm/drm_fourcc.h+4 -10 replies
4/10util: Add support for DRM_FORMAT_C[124]tests/util/format.c+3 -00 replies
5/10util: Store number of colors for indexed formatstests/util/format.c tests/util/format.h+5 -40 replies
6/10util: Add SMPTE pattern support for C4 formattests/util/pattern.c+42 -00 replies
7/10util: Add SMPTE pattern support for C1 formattests/util/pattern.c+167 -40 replies
8/10util: Add SMPTE pattern support for C2 formattests/util/pattern.c+96 -10 replies
9/10modetest: Add support for DRM_FORMAT_C[124]tests/modetest/buffers.c+15 -00 replies
10/10modetest: Add SMPTE pattern support for C4 formattests/modetest/modetest.c tests/util/pattern.c+6 -40 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSam Ravnborg
SeriesA-b
1/10A-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH libdrm v2 00/10] Add support for low-color frame buffer formats

Hi all,

A long outstanding issue with the DRM subsystem has been the lack of support for low-color displays, as used typically on older desktop systems, and on small embedded displays.

This patch series adds support for color-indexed frame buffer formats with 2, 4, and 16 colors. It has been tested on ARAnyM using a work-in-progress Atari DRM driver.

Changes compared to v1:
- SMPTE color LUT accuracy,
- Factor out smpte color LUT,
- Restructure patches,
- Improve descriptions.
- Store number of colors for indexed formats,
- Add SMPTE pattern support for the C1 and C2 formats.

Please refer to [2] for related Linux DRM patches and background information.

Thanks for your comments!

[1] "[PATCH libdrm 0/3] Add support for low-color frame buffer formats"

    https://lore.kernel.org/r/[email protected]
[2] "[PATCH v3 00/10] drm: Add support for low-color frame buffer formats"
    https://lore.kernel.org/r/[email protected]

Geert Uytterhoeven (10):
util: Improve SMPTE color LUT accuracy
util: Factor out and optimize C8 SMPTE color LUT [RFC] drm_fourcc: Add DRM_FORMAT_C[124]
util: Add support for DRM_FORMAT_C[124]
util: Store number of colors for indexed formats
util: Add SMPTE pattern support for C4 format
util: Add SMPTE pattern support for C1 format
util: Add SMPTE pattern support for C2 format
modetest: Add support for DRM_FORMAT_C[124]
modetest: Add SMPTE pattern support for C4 format

 include/drm/drm_fourcc.h  |   5 +-
 tests/modetest/buffers.c  |  15 ++
 tests/modetest/modetest.c |   9 +-
 tests/util/format.c       |   5 +-
 tests/util/format.h       |   1 +
 tests/util/pattern.c      | 416 ++++++++++++++++++++++++++++++++++----
 tests/util/pattern.h      |   2 +-
 7 files changed, 409 insertions(+), 44 deletions(-)
Signature · 1 line
2.25.1