From patchwork Mon Mar 7 20:53:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12772367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12BC0C433FE for ; Mon, 7 Mar 2022 20:53:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BF3010E23A; Mon, 7 Mar 2022 20:53:41 +0000 (UTC) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7468E10E235 for ; Mon, 7 Mar 2022 20:53:32 +0000 (UTC) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:6100:2d37:4115:c358]) by laurent.telenet-ops.be with bizsmtp id 3YtW270081Yj8bA01YtW0V; Mon, 07 Mar 2022 21:53:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nRKM9-0036SQ-2H; Mon, 07 Mar 2022 21:53:25 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1nRKM8-0034mE-JA; Mon, 07 Mar 2022 21:53:24 +0100 From: Geert Uytterhoeven To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 0/3] Add support for low-color frame buffer formats Date: Mon, 7 Mar 2022 21:53:15 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Geert Uytterhoeven Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 supporting 2, 4, 16, and 256 colors. Overview: - Patch 1 optimizes the C8 SMPTE color LUT, for reuse with formats providing less colors, - Patch 2 introduces the new C[124] formats, - Patch 3 adds SMPTE pattern support for the C4 format. Note that so far there is no specific pattern support for the C1 and C2 formats. Please refer to [1] for more information. Thanks for your comments! [1] "[PATCH v2 00/10] drm: Add support for low-color frame buffer formats" https://lore.kernel.org/r/cover.1646683502.git.geert@linux-m68k.org Geert Uytterhoeven (3): util: Optimize C8 SMPTE color LUT drm_fourcc: Add DRM_FORMAT_C[124] util: Add SMPTE pattern support for C4 format include/drm/drm_fourcc.h | 5 ++- tests/modetest/buffers.c | 15 +++++++ tests/modetest/modetest.c | 13 ++++-- tests/util/format.c | 3 ++ tests/util/pattern.c | 93 +++++++++++++++++++++++++++++---------- tests/util/pattern.h | 2 +- 6 files changed, 101 insertions(+), 30 deletions(-)