From patchwork Mon Mar 23 08:20:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 26310 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 90782C32F9 for ; Mon, 23 Mar 2026 08:20:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3560162771; Mon, 23 Mar 2026 09:20:15 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="g9Yo/4ze"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1B15762753 for ; Mon, 23 Mar 2026 09:20:05 +0100 (CET) Received: from pb-laptop.local (185.221.143.129.nat.pool.zt.hu [185.221.143.129]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C72C12441; Mon, 23 Mar 2026 09:18:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1774253928; bh=WMTAH5iIIgsliP//GsQRG6lecJ69mye4o3hZkv3d/0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g9Yo/4zeU9EYLTjIsjeN7BlUj6+e7HgJ/8q0PaJEw0stwwIOUwn49aD0ZwFbE4XOg nrKl1yj0XoZ7BAqCdOmd3VDs2sbpsKYEFf1MYjLLuD7lhIRDEanYwm1KYQcgtkov+L su0p6iMuuaOrokZgYUKgOqmz4qtOGaDUx1mn8gcE= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Laurent Pinchart Subject: [PATCH v2 7/7] meson: Guard softisp gpu acceleration with feature option: softisp-gpu Date: Mon, 23 Mar 2026 09:20:00 +0100 Message-ID: <20260323082000.1324115-8-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323082000.1324115-1-barnabas.pocze@ideasonboard.com> References: <20260323082000.1324115-1-barnabas.pocze@ideasonboard.com> 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" Previously it was not possible to disable gpu acceleration if every dependency was discovered by meson. Fix that by adding a new option. Signed-off-by: Barnabás Pőcze Reviewed-by: Milan Zamazal Reviewed-by: Laurent Pinchart --- changes in v2: * rename option from `softisp-debayer-egl` to `softisp-gpu` v1: https://patchwork.libcamera.org/patch/26047/ --- meson_options.txt | 5 +++++ src/libcamera/software_isp/meson.build | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.53.0 diff --git a/meson_options.txt b/meson_options.txt index c27e377ad..af1c60cce 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -86,6 +86,11 @@ option('rpi-awb-nn', value : 'auto', description : 'Enable the Raspberry Pi Neural Network AWB algorithm') +option('softisp-gpu', + type : 'feature', + value : 'auto', + description : 'Enable GPU accelerated processing in the software ISP') + option('test', type : 'boolean', value : false, diff --git a/src/libcamera/software_isp/meson.build b/src/libcamera/software_isp/meson.build index cbcd3c1b3..7a2f704bf 100644 --- a/src/libcamera/software_isp/meson.build +++ b/src/libcamera/software_isp/meson.build @@ -7,9 +7,11 @@ if not softisp_enabled subdir_done() endif -libegl = dependency('egl', required : false) -libglesv2 = dependency('glesv2', required : false) -mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl) +libegl = dependency('egl', required : get_option('softisp-gpu')) +libglesv2 = dependency('glesv2', required : get_option('softisp-gpu')) +mesa_works = cc.check_header('EGL/egl.h', + required : get_option('softisp-gpu'), + dependencies : libegl) summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')