Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: simon.zeni@collabora.com
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@linux.intel.com, karthik.b.s@intel.com,
	swati2.sharma@intel.com, adrinael@adrinael.net,
	juhapekka.heikkila@gmail.com,
	Simon Zeni <simon.zeni@collabora.com>
Subject: [PATCH i-g-t 0/3] Add support for DRM_FORMAT_Y8 in tests/kms_plane
Date: Wed,  2 Dec 2026 11:51:04 -0500	[thread overview]
Message-ID: <20261202165111.33166-1-simon.zeni@collabora.com> (raw)

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


             reply	other threads:[~2026-12-02 16:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 16:51 simon.zeni [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202165111.33166-1-simon.zeni@collabora.com \
    --to=simon.zeni@collabora.com \
    --cc=adrinael@adrinael.net \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=karthik.b.s@intel.com \
    --cc=swati2.sharma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox