[0/3] software_isp: Implement DMABuf import for input buffers
mbox series

Message ID 20260503114002.139255-1-robert.mader@collabora.com
Headers show
Series
  • software_isp: Implement DMABuf import for input buffers
Related show

Message

Robert Mader May 3, 2026, 11:39 a.m. UTC
From the main commit:
In many cases we can import the GPU-ISP input buffer, a dmabuf from v4l2,
directly into EGL instead of mapping and uploading - i.e. copying - it.
This reduces memory bandwidth and CPU usage and can slightly improve
latency.

Notes: Previous iterations of these patches have already been tested on
various platforms, without known regressions and showing significant
improvements.

Robert Mader (3):
  egl: Add more parameters to createInputDMABufTexture2D()
  debayer_egl: Implement dmabuf import for input buffers
  debayer_egl: Sync output buffer after processing stats

 include/libcamera/internal/egl.h           |  4 +--
 src/libcamera/egl.cpp                      | 37 +++++++++++++++++-----
 src/libcamera/software_isp/debayer_egl.cpp | 35 ++++++++++----------
 src/libcamera/software_isp/debayer_egl.h   |  2 +-
 4 files changed, 51 insertions(+), 27 deletions(-)