From patchwork Thu Jun 18 12:22:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 26953 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 6E12BC331D for ; Thu, 18 Jun 2026 12:23:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B6974656B8; Thu, 18 Jun 2026 14:23:32 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="kP46Al7P"; dkim-atps=neutral Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D3FFC656B4 for ; Thu, 18 Jun 2026 14:23:13 +0200 (CEST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-490acbb0f89so5107845e9.0 for ; Thu, 18 Jun 2026 05:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781785393; x=1782390193; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=otunOUI1agRrvtm6rTUQ9gqlRxTZmvPpP1vnDqvDaf4=; b=kP46Al7PlAPXb0dCxWQ+5i0dAJih47h6tCc8OPcIoDn8PMcaDZSdDiFQgiTLVg0BU2 fau3THDQjOOQYgoRFR9DOoawZYiSZxMouNKPpOvklwZKeNVAnzZFob8pH0wVjUuinV1V QpUjoUXxJRg4yhccYUPm8Rsc3t0q6BOrzAtFIawDk3TfEQQuNnHBW3YqgPV4190FqtC4 8PoqBt+aNIKLMUsbKS2p0P3+JDJt1Eim5w8LnuqD4NUTsF7TMKt2R476OPk0e4Z+b5w6 Z4nPjxKb7Otkb5dhBO4fP2YHhABSt0vQNKL/zBokJ/G86ip+sFapHXht6s4JfWA1EJNr L/Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781785393; x=1782390193; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=otunOUI1agRrvtm6rTUQ9gqlRxTZmvPpP1vnDqvDaf4=; b=o30GpiItBWUh4g//tPLCCGd4qo+m/Sb9oWE7BxKvixrEEciDx2f0th4GRKgDoq11GB hNGaHRRXSCzVoSN69S8uVeWHIDznMr5boJWunvP8k4DmUIGMjqBi4yQaN5xw3gO097IH eMtDK7Jx9YCIXExP0Dv8YuGFnrjHnYOLG55z7f7l5qkWnLM45aRLfUUfNAR8SWf/2JCt xvjsvmheO0R8nxBbAKfF60q1d2Oj5fM/lQWezf1lrRday/rPEXgQCAJ9sjk4Tc24RpJ1 QfKXbsuIP9+Jrme7CHdLAJFTCxlsAVj0XRhNLBqf9nsYSoOX0hSCbGWA8vJiribGRsyQ JAaA== X-Gm-Message-State: AOJu0Yw0aFpnvZLbQ3d94p3cwtRLsF0lKSURJZI3sO2wk3dY/d7wJ0EH kOq6eN436HWh7AiG9qlbSZAlPZMPSlfo+mD4ps2QrFZ90SbDRvHTv10tb4hh2LR0y6T+YyJI1pF Rmbmzrag= X-Gm-Gg: AfdE7cknAJ7ajO3KqBJXaWHNVLK7npSeZYF9PVfZg1AbL2woJVPJ76DEEnx1Q9ex/3K xOe2SODVLJxx949qxebrBlFn0G/2fLHR8COMxjy/DA17hkNQrDh0C0xoIxD7j/nDK4JfQv0Y9XP 2O37gl69QzkNKc/Zf31pY9QMZVBUATBYpJttX5Ib5Xu9pQkp7TzOReF2xa6NhjKuzJTYAnrOo6h /nGy/MZ04u3DzfKQZ2k/W3i3HfgB6/oq8pIE4idptMdiTFUwedlC+8g3An2dHcIiLwYZFQ1m0F+ 89ECCXbryEJlw4UxOUwvN78aVudre8mtlCmCffHmreGdh/QrmRFtdvHPDfo3cnQwkAfNg2ag5HE moFn1ONurTR9jLeSCFoLlR0D0haXnZ0TimaT/4u38dWpzelGEjyKVKt6d34gTzMLEbZox6L3G7u FAy809UE4qis5nX9S/W+6YTWdGOM2O X-Received: by 2002:a05:600c:45c5:b0:490:ea88:9d4c with SMTP id 5b1f17b1804b1-4923822b3a3mr54200405e9.32.1781785392988; Thu, 18 Jun 2026 05:23:12 -0700 (PDT) Received: from inspiron14p-linux ([109.76.144.236]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4922fa3a4easm275198015e9.3.2026.06.18.05.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 05:23:12 -0700 (PDT) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: bryan.odonoghue@linaro.org, pavel@ucw.cz Subject: [PATCH 20/30] libcamera: software_isp: gpu: Include GpuIspShaderPassBlcNormalise in init sequence Date: Thu, 18 Jun 2026 13:22:33 +0100 Message-ID: <20260618122245.946138-21-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260618122245.946138-1-bryan.odonoghue@linaro.org> References: <20260618122245.946138-1-bryan.odonoghue@linaro.org> 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" Signed-off-by: Bryan O'Donoghue --- src/libcamera/software_isp/software_isp_pipeline_gpu.cpp | 6 +++++- src/libcamera/software_isp/software_isp_pipeline_gpu.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp b/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp index 18a8ae17a..3c9b48154 100644 --- a/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp +++ b/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp @@ -41,7 +41,7 @@ namespace libcamera { * \param[in] cm The camera manager */ SoftwareIspPipelineGpu::SoftwareIspPipelineGpu(std::unique_ptr stats, const CameraManager &cm) - : SoftwareIspPipeline(cm), stats_(std::move(stats)), gpuIspShaderPassDemosiac_(egl_) + : SoftwareIspPipeline(cm), stats_(std::move(stats)), gpuIspShaderPassBlcNormalise_(egl_), gpuIspShaderPassDemosiac_(egl_) { } @@ -113,6 +113,10 @@ int SoftwareIspPipelineGpu::initBayerShaders(PixelFormat inputFormat, PixelForma { int ret; + ret = gpuIspShaderPassBlcNormalise_.initShaders(inputFormat, outputFormat); + if (ret) + return ret; + ret = gpuIspShaderPassDemosiac_.initShaders(inputFormat, outputFormat); return ret; diff --git a/src/libcamera/software_isp/software_isp_pipeline_gpu.h b/src/libcamera/software_isp/software_isp_pipeline_gpu.h index fcd622492..8a922f658 100644 --- a/src/libcamera/software_isp/software_isp_pipeline_gpu.h +++ b/src/libcamera/software_isp/software_isp_pipeline_gpu.h @@ -24,6 +24,7 @@ #include "libcamera/internal/software_isp/swstats_cpu.h" #include "software_isp_pipeline.h" +#include "gpu_pipeline_shader_pass_blc_normalise.h" #include "gpu_pipeline_shader_pass_demosiac.h" namespace libcamera { @@ -73,6 +74,7 @@ private: uint32_t width_; uint32_t height_; + GpuIspShaderPassBlcNormalise gpuIspShaderPassBlcNormalise_; GpuIspShaderPassDemosiac gpuIspShaderPassDemosiac_; };