software_isp: debayer_egl: Re-add log for failing DMABuf import
P.S.: this should also help with testing the CAMSS pipeline handler (https://patchwork.libcamera.org/cover/27426/), which *should* be able to accommodate requested strides - and thus always allow dmabuf import \o/ (I haven't tested that yet, will try ASAP).
Quoted 26 lines · Robert Mader
The log was introduced in commit
93f0db167a8d("debayer_egl: Implement dmabuf import for input buffers") and dropped in the commit mentioned below. Let's readd it as failing imports majorly impact performance and indicate actionable issues in the V4L2 or GPU drivers. Ensure the log is only printed once, now that we use multiple eGLImages.Fixes 13f7b921acdf ("libcamera: software_isp: debayer_egl: Implement input/output frame caching mechanism")Signed-off-by Robert Mader <[email protected]>--- src/libcamera/software_isp/debayer_egl.cpp | 2 ++ 1 file changed, 2 insertions(+)src/libcamera/software_isp/debayer_egl.cpp +2
-0@@ -533,6 +533,8 @@ eGLImage *DebayerEGL::getCachedInputFrameBuffer(FrameBuffer *input, std::optiona if (egl_.createInputDMABufTexture2D(*eglImageIn, input->planes()[0].fd.get()) == 0) return eglImageIn; + if (eglImageInCache_.size() == 1) + LOG(Debayer, Info) << "Importing input buffer with DMABuf import failed, falling back to upload"; } else if (!eglImageIn->dmabuf_import_failed_) { egl_.activateBindTexture(*eglImageIn); return eglImageIn;
Signature · 6 lines
Robert Mader Consultant Software Developer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718
Uh, I'm sorry, please ignore this message - wrong mailing list 🤦
Quoted 31 lines · Robert Mader
P.S.: this should also help with testing the CAMSS pipeline handler (https://patchwork.libcamera.org/cover/27426/), which *should* be able to accommodate requested strides - and thus always allow dmabuf import \o/ (I haven't tested that yet, will try ASAP).Quoted 27 lines · Robert Mader
The log was introduced in commit
93f0db167a8d("debayer_egl: Implement dmabuf import for input buffers") and dropped in the commit mentioned below. Let's readd it as failing imports majorly impact performance and indicate actionable issues in the V4L2 or GPU drivers. Ensure the log is only printed once, now that we use multiple eGLImages.Fixes 13f7b921acdf ("libcamera: software_isp: debayer_egl: Implement input/output frame caching mechanism")Signed-off-by Robert Mader <[email protected]>---
src/libcamera/software_isp/debayer_egl.cpp | 2 ++1 file changed, 2 insertions(+)src/libcamera/software_isp/debayer_egl.cpp +1
-0@@ -533,6 +533,8 @@ eGLImage *DebayerEGL::getCachedInputFrameBuffer(FrameBuffer *input, std::optiona if (egl_.createInputDMABufTexture2D(*eglImageIn, input->planes()[0].fd.get()) == 0) return eglImageIn; + if (eglImageInCache_.size() == 1) + LOG(Debayer, Info) << "Importing input buffer with DMABuf import failed, falling back to upload"; } else if (!eglImageIn->dmabuf_import_failed_) {
egl_.activateBindTexture(*eglImageIn);
return eglImageIn;
Signature · 6 lines
Robert Mader Consultant Software Developer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718