{"id":26047,"url":"https://patchwork.libcamera.org/api/1.1/patches/26047/?format=json","web_url":"https://patchwork.libcamera.org/patch/26047/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260129164032.1380169-7-barnabas.pocze@ideasonboard.com>","date":"2026-01-29T16:40:32","name":"[v1,7/7] meson: Guard egl debayering with feature option: softisp-debayer-egl","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"a178519ddfe1980d3874aeb9f20c097c3e03f85e","submitter":{"id":216,"url":"https://patchwork.libcamera.org/api/1.1/people/216/?format=json","name":"Barnabás Pőcze","email":"barnabas.pocze@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/26047/mbox/","series":[{"id":5757,"url":"https://patchwork.libcamera.org/api/1.1/series/5757/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5757","date":"2026-01-29T16:40:27","name":"[v1,1/7] meson: Drop unnecessary egl, gles feature defines","version":1,"mbox":"https://patchwork.libcamera.org/series/5757/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/26047/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/26047/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 76D8CC3226\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 29 Jan 2026 16:40:47 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 1D1AB61FE7;\n\tThu, 29 Jan 2026 17:40:47 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D6B7361FD1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 29 Jan 2026 17:40:36 +0100 (CET)","from pb-laptop.local (185.221.142.123.nat.pool.zt.hu\n\t[185.221.142.123])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 207161661\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 29 Jan 2026 17:39:59 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"gy+Tfq66\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1769704799;\n\tbh=kSdxd5gZwMIC4zTyRu6gX/7WXwJ2Kpb2KMP3W7K6Yps=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=gy+Tfq663Dn3kiQDcnA+TfjNxFi27vOzsbG7cXeMLHUVedPW/3poFTs2f0jowiJhm\n\ttsRvfavo0OBo+mStjVc2D8jp6Yb8UuEl+dtZ2vv7l6Eywe8sWPPm/gC0hK8GwvsCfy\n\tZe2soy5M7QIjzmjdwxB9fr4HSb35Voy3Z436f+A0=","From":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH v1 7/7] meson: Guard egl debayering with feature option:\n\tsoftisp-debayer-egl","Date":"Thu, 29 Jan 2026 17:40:32 +0100","Message-ID":"<20260129164032.1380169-7-barnabas.pocze@ideasonboard.com>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20260129164032.1380169-1-barnabas.pocze@ideasonboard.com>","References":"<20260129164032.1380169-1-barnabas.pocze@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Previously it was not possible to disable egl debayering if every\ndependency was discovered by meson. Fix that by adding a new option.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n meson_options.txt                      | 5 +++++\n src/libcamera/software_isp/meson.build | 8 +++++---\n 2 files changed, 10 insertions(+), 3 deletions(-)","diff":"diff --git a/meson_options.txt b/meson_options.txt\nindex 078472940..d600cd1be 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -81,6 +81,11 @@ option('rpi-awb-nn',\n         value : 'auto',\n         description : 'Enable the Raspberry Pi Neural Network AWB algorithm')\n \n+option('softisp-debayer-egl',\n+        type : 'feature',\n+        value : 'auto',\n+        description : 'Enable OpenGL ES based debayering in the software ISP')\n+\n option('test',\n         type : 'boolean',\n         value : false,\ndiff --git a/src/libcamera/software_isp/meson.build b/src/libcamera/software_isp/meson.build\nindex cbcd3c1b3..754a0d2d9 100644\n--- a/src/libcamera/software_isp/meson.build\n+++ b/src/libcamera/software_isp/meson.build\n@@ -7,9 +7,11 @@ if not softisp_enabled\n     subdir_done()\n endif\n \n-libegl = dependency('egl', required : false)\n-libglesv2 = dependency('glesv2', required : false)\n-mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl)\n+libegl = dependency('egl', required : get_option('softisp-debayer-egl'))\n+libglesv2 = dependency('glesv2', required : get_option('softisp-debayer-egl'))\n+mesa_works = cc.check_header('EGL/egl.h',\n+                             required : get_option('softisp-debayer-egl'),\n+                             dependencies : libegl)\n \n summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')\n \n","prefixes":["v1","7/7"]}