Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/3] Add support for DRM_FORMAT_Y8 in tests/kms_plane
@ 2026-12-02 16:51 simon.zeni
  2026-12-02 16:51 ` [PATCH i-g-t 1/3] drm-uapi/fourcc: sync with drm-next 601c30449 simon.zeni
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: simon.zeni @ 2026-12-02 16:51 UTC (permalink / raw)
  To: igt-dev
  Cc: kamil.konieczny, karthik.b.s, swati2.sharma, adrinael,
	juhapekka.heikkila, Simon Zeni

From: Simon Zeni <simon.zeni@collabora.com>

This series adds support for the greyscale format DRM_FORMAT_Y8 in the kms_plane test. A sync with
drm-next was required to bring in the new format value into the codebase.

The Y8 format is converted into RGB24 and back with a dedicated functions. For the function
converting to RGB24 a neutral chroma value of 128 is used for the for U and V components.

In the kms_plane test a new greyscale CRC has been introduced to, the existing reference CRCs
(simple and multiple) could not be reused due to their use of colours. I went with a pure grey
colour for this case, but maybe more grey-ish colours could be use in a follow up, to draw multiple
rectangles like it's done in `draw_entire_color_array`.

I have validated this change with the VKMS driver and this patch [1], which adds Y8 support to
the driver.

Cheers,

Simon

[1]: https://lore.kernel.org/dri-devel/20261125200007.60636-1-simon.zeni@collabora.com/T/#u

Simon Zeni (3):
  drm-uapi/fourcc: sync with drm-next 601c30449
  lib/igt_fb: add support for DRM_FORMAT_Y8
  tests/kms_plane: compare DRM_FORMAT_Y8 plane with greyscale reference
    CRC

 include/drm-uapi/drm_fourcc.h | 465 ++++++++++++++++++++++++++++++----
 lib/igt_color_encoding.c      |   1 +
 lib/igt_fb.c                  | 117 +++++++++
 tests/kms_plane.c             |  58 ++++-
 4 files changed, 592 insertions(+), 49 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-12-02 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 16:51 [PATCH i-g-t 0/3] Add support for DRM_FORMAT_Y8 in tests/kms_plane simon.zeni
2026-12-02 16:51 ` [PATCH i-g-t 1/3] drm-uapi/fourcc: sync with drm-next 601c30449 simon.zeni
2026-12-02 16:51 ` [PATCH i-g-t 2/3] lib/igt_fb: add support for DRM_FORMAT_Y8 simon.zeni
2026-12-02 16:51 ` [PATCH i-g-t 3/3] tests/kms_plane: compare DRM_FORMAT_Y8 plane with greyscale reference CRC simon.zeni
2026-12-02 21:08 ` ✓ Xe.CI.BAT: success for Add support for DRM_FORMAT_Y8 in tests/kms_plane Patchwork
2026-12-02 21:57 ` ✓ i915.CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox