From patchwork Tue Jun 30 08:30:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 27135 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 72771C3264 for ; Tue, 30 Jun 2026 08:30:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3779265F4A; Tue, 30 Jun 2026 10:30:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="riJL9oH+"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6F267658C5 for ; Tue, 30 Jun 2026 10:30:33 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-70f3-e800--a06.rev.dnainternet.fi [IPv6:2001:14ba:70f3:e800::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8CED1D52; Tue, 30 Jun 2026 10:29:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1782808189; bh=UZ1cBbCGx3jziqVVQ2P8Vy8vevRMl0198n1/LswaG1M=; h=From:To:Cc:Subject:Date:From; b=riJL9oH+AZYiHKz5qAgKHEPcxrRHDGKegdq/9aYu5cAWWs6PYw95K15NJE6dAH/T9 t9JIJIzNmmkns+QgVuPWj+o6qNx6/oA+nknROPI5ijYYmbH/j3AYop2NLxfKe/Bl+R FYVhBNU4fA31TrMaoolmaGZdeOSf17eK0DkupJhk= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Bryan O'Donoghue Subject: [PATCH 0/4] libcamera: Improve shader header generation Date: Tue, 30 Jun 2026 11:30:27 +0300 Message-ID: <20260630083031.3197714-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, I found a cleanup branch in my tree that I had forgotten to send out. Here it is after a rebase. The goal was to use std::array in the generated shader header. This is done in patch 4/4. As a byproduct, I ended up simplifying the generation by merging the two scripts into one (2/4) and moving the build logic (1/4) and generation script (3/4) to the right location. Laurent Pinchart (4): libcamera: shaders: Move header generation to shaders directory utils: Merge shader header generation scripts utils: Rename and move shader header generation script libcamera: shaders: Replace C array with std::array src/libcamera/meson.build | 10 --- src/libcamera/shaders/meson.build | 10 +++ src/libcamera/software_isp/debayer_egl.cpp | 25 +++----- utils/codegen/gen-shader-header.py | 72 ++++++++++++++++++++++ utils/codegen/meson.build | 1 + utils/gen-shader-header.py | 37 ----------- utils/gen-shader-headers.sh | 54 ---------------- utils/meson.build | 2 - 8 files changed, 91 insertions(+), 120 deletions(-) create mode 100755 utils/codegen/gen-shader-header.py delete mode 100755 utils/gen-shader-header.py delete mode 100755 utils/gen-shader-headers.sh base-commit: 7a033dbdd4ca29cca2ef7eb144f6a6f57979b70d