[RFC,v2,14/26] libcamera: software_isp: egl: Use Texture Unit 3 for final output texture
diff mbox series

Message ID 20261118095735.170587-15-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
We will use ping/pong buffers as intermediary steps in the GPUISP pipeline.
The last texture should logically be texture unit #3.

TEXTURE0 = Input
TEXTURE1 = Ping
TEXTURE2 = Pong
TEXTURE3 = Output

We don't have ping/pong yet but in preparation make the small change to
TEXTURE3 for the existing output framebuffer.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 src/libcamera/software_isp/software_isp_instance_gpu.cpp | 2 +-
 1 file changed, 1 insertion(+), 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 5c473948c..31b57d2a0 100644
--- a/src/libcamera/software_isp/software_isp_instance_gpu.cpp
+++ b/src/libcamera/software_isp/software_isp_instance_gpu.cpp
@@ -292,7 +292,7 @@  eGLImage *SoftwareIspInstanceGpu::getCachedOutputFrameBuffer(FrameBuffer *output
 		}
 
 		eglImageOutCache_.emplace_back(fd, std::make_unique<eGLImage>(GL_RGBA, outputSize_.width,
-									      outputSize_.height, outputConfig_.stride, GL_TEXTURE1, 1));
+									      outputSize_.height, outputConfig_.stride, GL_TEXTURE3, 3));
 		eglImageOut = eglImageOutCache_.back().second.get();
 
 		if (egl_.createOutputDMABufTexture2D(*eglImageOut, output->planes()[0].fd.get())) {