{"id":26792,"url":"https://patchwork.libcamera.org/api/covers/26792/?format=json","web_url":"https://patchwork.libcamera.org/cover/26792/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260521155906.120373-1-robert.mader@collabora.com>","date":"2026-05-21T15:59:01","name":"[v4,0/5] software_isp: Implement DMABuf import for input buffers","submitter":{"id":140,"url":"https://patchwork.libcamera.org/api/people/140/?format=json","name":"Robert Mader","email":"robert.mader@collabora.com"},"mbox":"https://patchwork.libcamera.org/cover/26792/mbox/","series":[{"id":5960,"url":"https://patchwork.libcamera.org/api/series/5960/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5960","date":"2026-05-21T15:59:02","name":"software_isp: Implement DMABuf import for input buffers","version":4,"mbox":"https://patchwork.libcamera.org/series/5960/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/26792/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 6DE05C32F4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 21 May 2026 15:59:32 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E10F16302C;\n\tThu, 21 May 2026 17:59:29 +0200 (CEST)","from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com\n\t[136.143.188.112])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2612D62E6A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 21 May 2026 17:59:25 +0200 (CEST)","by mx.zohomail.com with SMTPS id 1779379159677942.6891720755206;\n\tThu, 21 May 2026 08:59:19 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=collabora.com\n\theader.i=robert.mader@collabora.com header.b=\"B99v9EeD\"; \n\tdkim-atps=neutral","ARC-Seal":"i=1; a=rsa-sha256; t=1779379162; cv=none; \n\td=zohomail.com; s=zohoarc; \n\tb=VJDfIFfCAwnldiUZLRzx9+Q/sP5T9VUqbEQeKCY/TzTKse2ECZGx4UxJdU3HQrTHddrbJEr7T/wCAvwhOVi8519vuTvCxrk/ElONKj3p7HKpo90eemHzutLFwyC/hN6EyJxtz/9QwfRR82SP4Q06bz/d0f3eODjhWW83LIjPb3g=","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; \n\ts=zohoarc; t=1779379162;\n\th=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To;\n\tbh=tGyQbQQsJr7SraziCPA192yHh2khZNPrVrY2gVUTitU=; \n\tb=eOijECW58X+EfoGD0vVn07wFT3kxOwW3m/RQOieCQkjbEdsFTf4M7h0NZlYgtL0BoIgbEXnW1viTMTxZVgzDMDcQ89qYCTb6Mh3zX9Xc+qaSNmP7ncjTkQhWnOHTkBYepXdiU2g+ooxhm71W3klHs2pDqTxtAzIXixbSVW6N4kg=","ARC-Authentication-Results":"i=1; mx.zohomail.com;\n\tdkim=pass  header.i=collabora.com;\n\tspf=pass  smtp.mailfrom=robert.mader@collabora.com;\n\tdmarc=pass header.from=<robert.mader@collabora.com>","DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1779379162;\n\ts=zohomail; d=collabora.com; i=robert.mader@collabora.com;\n\th=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To;\n\tbh=tGyQbQQsJr7SraziCPA192yHh2khZNPrVrY2gVUTitU=;\n\tb=B99v9EeDwqlMFHtdeTXf+CjBoE1n8/kFEkPZsvu6AA/QowT0dt3qBt7ADUPk0tso\n\tOtecugIK/Fps5F0pptn9NggdOpVbiOGl2FcG9kLfMJBqtHplz0T/t719PHqfSWATD/r\n\tS4ekdV+aArKXl1l+Mu863G8ygP8yo7rMhNHqX5tg=","From":"Robert Mader <robert.mader@collabora.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Robert Mader <robert.mader@collabora.com>","Subject":"[PATCH v4 0/5] software_isp: Implement DMABuf import for input\n\tbuffers","Date":"Thu, 21 May 2026 17:59:01 +0200","Message-ID":"<20260521155906.120373-1-robert.mader@collabora.com>","X-Mailer":"git-send-email 2.54.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From the main commit:\nIn many cases we can import the GPU-ISP input buffer, a dmabuf from v4l2,\ndirectly into EGL instead of mapping and uploading - i.e. copying - it.\nThis reduces memory bandwidth and CPU usage and can slightly improve\nlatency.\n\nNotes: Previous iterations of these patches have already been tested on\nvarious platforms, without known regressions and showing significant\nimprovements.\n\nChanges in v4:\n- Split out commit \"debayer_egl: Sync output buffer after processing stats\"\n  into its own series and rebased this series on top:\n  https://patchwork.libcamera.org/cover/26788/\n- Added performance benchmarks\n- Move dmabuf_import_failed_ variable to eGLImage, ensuring it gets reset.\n- Added commit to ensure input buffer doesn't get mapped twice.\n\nChanges in v3:\n- Split up changes to createTexture2D() and eGLImage constructor\n  into two commits.\n- Added field to remember dmabuf import fails - and promote the relevant\n  log to Info.\n- Reordered and slightly extended commit message for \"egl: Demote an\n  error log to debug\"\n- Fixed some CI / linter errors\n\nChanges in v2:\n- Instead of adding parameters to createInputDMABufTexture2D(), remove\n  them from createTexture2D instead.\n- Use std::optional<DmaSyncer> to make the code easier to understand.\n- Move error log level change into its own commit.\n\nRobert Mader (5):\n  egl: Add GL format parameter to eGLImage constructor\n  egl: Remove some parameters from createTexture2D()\n  debayer_egl: Implement dmabuf import for input buffers\n  egl: Demote an error log to debug\n  debayer_egl: Sync output buffer after processing stats\n\nRobert Mader (5):\n  egl: Add GL format parameter to eGLImage constructor\n  egl: Remove some parameters from createTexture2D()\n  egl: eGLImage: Add flag to remember dmabuf import fails\n  libcamera: swstats_cpu: Take MappedFrameBuffer in processFrame()\n  debayer_egl: Implement dmabuf import for input buffers\n\n include/libcamera/internal/egl.h              |  9 ++-\n .../internal/software_isp/swstats_cpu.h       |  2 +-\n src/libcamera/egl.cpp                         | 32 ++++++++---\n src/libcamera/software_isp/debayer_egl.cpp    | 55 ++++++++++++-------\n src/libcamera/software_isp/debayer_egl.h      |  2 +-\n src/libcamera/software_isp/swstats_cpu.cpp    | 13 +----\n 6 files changed, 70 insertions(+), 43 deletions(-)"}