From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C575E606A323 for ; Wed, 2 Dec 2026 16:52:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=qk9i+Vc2 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B8D610E602; Wed, 2 Dec 2026 16:52:35 +0000 (UTC) Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id A214D1123A7 for ; Wed, 2 Dec 2026 16:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796230285; bh=bnjOy4Vm74nB6dSuw36jmYLHHO1Sl7YDbpG/6wWuihg=; h=From:To:Cc:Subject:Date:From; b=qk9i+Vc21w2l6zOmEocNGqLGA5my9JORCbefZhJQYfEC8rTxebZdJpg3Apj4g5Dyj xFCYNUrpfzGDd0LY32c9+PPDIjCMgsv/lThUnweAakGDuikMjZIjiU5QRQRF61NJfW 1X3kTWAaRpfKbDgr+PzL0RFkjNKqFTun8Q4N6Frsl7RNp5QLctpv/eowSgG+K1MfKM /taihR8if7Z0Yl3mjdfIlSFdlHpHFXh2r6nWlLrx+Kg6XR7BXP9vYpUbdmPmZGvtp7 YJP5wDUf4KSmcB7LFQ/e1qwKTKIkHPnWHimrv3z/u1yrOGuqE8pqptFixD0QTQufdg nq4v7VDfERNDw== Received: from vileplume (unknown [100.64.0.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: simonz) by bali.collaboradmins.com (Postfix) with ESMTPSA id 397F817E0657; Wed, 02 Dec 2026 17:51:23 +0100 (CET) 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 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 Message-ID: <20261202165111.33166-1-simon.zeni@collabora.com> X-Mailer: git-send-email 2.53.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "igt-dev" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Simon Zeni 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