[RFC,v2,16/26] libcamera: software_isp: gpu: Include GpuIspShaderPassBlcNormalise in init sequence
diff mbox series

Message ID 20261118095735.170587-17-bryan.odonoghue@linaro.org
State New
Headers show
Series
  • gpuisp multipass + fixes
Related show

Commit Message

Bryan O'Donoghue Nov. 18, 2026, 9:57 a.m. UTC
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 src/libcamera/software_isp/software_isp_instance_gpu.cpp | 8 +++++++-
 src/libcamera/software_isp/software_isp_instance_gpu.h   | 2 ++
 2 files changed, 9 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/libcamera/software_isp/software_isp_instance_gpu.cpp b/src/libcamera/software_isp/software_isp_instance_gpu.cpp
index 85820b267..ba364516f 100644
--- a/src/libcamera/software_isp/software_isp_instance_gpu.cpp
+++ b/src/libcamera/software_isp/software_isp_instance_gpu.cpp
@@ -43,7 +43,7 @@  namespace libcamera {
  * \param[in] display The EGL display to use
  */
 SoftwareIspInstanceGpu::SoftwareIspInstanceGpu(std::unique_ptr<SwStatsCpu> stats, const CameraManager &cm, EGLDisplay display)
-	: SoftwareIspInstance(cm), stats_(std::move(stats)), egl_(display), gpuIspShaderPassDemosiac_(egl_)
+	: SoftwareIspInstance(cm), stats_(std::move(stats)), egl_(display), gpuIspShaderPassDemosiac_(egl_), gpuIspShaderPassBlcNormalise_(egl_)
 {
 }
 
@@ -99,6 +99,12 @@  int SoftwareIspInstanceGpu::getInputConfig(PixelFormat inputFormat, DebayerInput
 
 int SoftwareIspInstanceGpu::initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat)
 {
+	int ret;
+
+	ret = gpuIspShaderPassBlcNormalise_.initShaders(inputFormat, outputFormat);
+	if (ret)
+		return ret;
+
 	return gpuIspShaderPassDemosiac_.initShaders(inputFormat, outputFormat);
 }
 
diff --git a/src/libcamera/software_isp/software_isp_instance_gpu.h b/src/libcamera/software_isp/software_isp_instance_gpu.h
index 9da9e717b..95cbea566 100644
--- a/src/libcamera/software_isp/software_isp_instance_gpu.h
+++ b/src/libcamera/software_isp/software_isp_instance_gpu.h
@@ -29,6 +29,7 @@ 
 #include <GLES3/gl32.h>
 
 #include "software_isp_instance.h"
+#include "gpu_pipeline_shader_pass_blc_normalise.h"
 #include "gpu_pipeline_shader_pass_demosiac.h"
 
 namespace libcamera {
@@ -87,6 +88,7 @@  private:
 	uint32_t height_;
 
 	GpuIspShaderPassDemosiac gpuIspShaderPassDemosiac_;
+	GpuIspShaderPassBlcNormalise gpuIspShaderPassBlcNormalise_;
 };
 
 } /* namespace libcamera */