{"id":27047,"url":"https://patchwork.libcamera.org/api/covers/27047/?format=json","web_url":"https://patchwork.libcamera.org/cover/27047/","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":"<20260626113325.3218045-1-bryan.odonoghue@linaro.org>","date":"2026-06-26T11:33:17","name":"[v3,0/8] libcamera: software_isp: gpu: Add go faster stripes","submitter":{"id":175,"url":"https://patchwork.libcamera.org/api/people/175/?format=json","name":"Bryan O'Donoghue","email":"bryan.odonoghue@linaro.org"},"mbox":"https://patchwork.libcamera.org/cover/27047/mbox/","series":[{"id":6020,"url":"https://patchwork.libcamera.org/api/series/6020/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=6020","date":"2026-06-26T11:33:17","name":"libcamera: software_isp: gpu: Add go faster stripes","version":3,"mbox":"https://patchwork.libcamera.org/series/6020/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/27047/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 99E69C3264\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Jun 2026 11:33:39 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A25F965902;\n\tFri, 26 Jun 2026 13:33:38 +0200 (CEST)","from mail-wm1-x335.google.com (mail-wm1-x335.google.com\n\t[IPv6:2a00:1450:4864:20::335])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0E6D2658F2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Jun 2026 13:33:37 +0200 (CEST)","by mail-wm1-x335.google.com with SMTP id\n\t5b1f17b1804b1-4926ee9e8d9so1531305e9.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Jun 2026 04:33:37 -0700 (PDT)","from inspiron14p-linux ([109.76.78.98])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-49268fe31b0sm79265985e9.4.2026.06.26.04.33.35\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 26 Jun 2026 04:33:35 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"xEdagFb0\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1782473616; x=1783078416;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=K9wbGybkHaPzFzh2Kky11WyMtizoAJUwZldC+Xz9A2U=;\n\tb=xEdagFb0XTv/CUGPhPiYvlw6IaZKsjlulk06RqadTq2P+WEzwoS7LbO3RSKoscsNF/\n\ts+qATVGCQRtJAE+za3TQeUe4Qihj2Z3TzaR6ijvoiaZS2eLP/20Rkpf6PQF5uujA2DPw\n\tvwuHhZXfRwAu1VSszwhlL5Ogh/Ix57ESb+7J8C7oxugKx0iBzngKoRf9JDYMQ+TaHXNM\n\tU4gnvx93IvPQEA6u5NMG3Kgige441vDAg9gz3ZmNeiU1XU7hy4AhS53qcHiUlkgsODEm\n\tDYf8mL90knkFiDGjPwvNaazfgACLWtUwJCAfZGcKvA1ziCyKTjDwMMiPGAuVItjR7jrm\n\tRTpw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1782473616; x=1783078416;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\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8G0sqWlTKj1twv7G0kX7JrtnXycLXWwvlhfb869XlF\n\tFOHdJeKrJuhA2zvub1nKm8YYOLCw==","X-Received":"by 2002:a05:600c:e54a:20b0:492:3fb5:3a17 with SMTP id\n\t5b1f17b1804b1-492663f5bc7mr59183395e9.2.1782473616517; \n\tFri, 26 Jun 2026 04:33:36 -0700 (PDT)","From":"Bryan O'Donoghue <bryan.odonoghue@linaro.org>","To":"libcamera-devel@lists.libcamera.org","Cc":"bryan.odonoghue@linaro.org,\n\tpavel@ucw.cz","Subject":"[PATCH v3 0/8] libcamera: software_isp: gpu: Add go faster stripes","Date":"Fri, 26 Jun 2026 12:33:17 +0100","Message-ID":"<20260626113325.3218045-1-bryan.odonoghue@linaro.org>","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":"v3:\n- Fixes a missing switch default from libcamera ci loop - bod\n\nv2:\n- Reverts to debayer_egl specific caching mechanism - Laurent\n- Pivots on dmabuf handle as key for cache. dmabuf handle\n  must be unique between start() and stop() for eglCreateImageKHR to work - Barnabas\n- Ensures sizeof cache doesn't exceed the number of expected buffers\n  as discovered during configure() - Barnabas\n- Drops GL_16F patch - Robert\n- Drops the \"input\" name from createInputTexture2D() - Robert\n- Adds RB as specified by Robert\n\nv1:\nFollowing on from Robert Mader's ask to bring forward GPUISP multi-pass\ncache operations to mainline first, I've done some work to enable that.\n\nThis series implements an input/output texture caching scheme which results\nin an overall absolute 4.5 millisecond - roughly improvement in performance\nper processed frame. This is a bit of an odd result as I was expecting to\nshave a particular % off of each frame in the order of 20% or so. My best\nguess is that particular paths we are optimising here are around texture\ngeneration and these are \"fixed costs\" on the CPU side.\n\nOne very welcome outcome of this series is genuine zero-copy on dma-buf\npaths we can support it on i.e. on paths where the CSI2 and GPU strides\nagree.\n\nThe numbers cited in my example are for non dma-buf handle upload and\ndma-buf handle render-to-texture on the output so, in fact I'd expect to\nsee a much larger improvement on systems where dma-buf handle is used on\nboth paths.\n\nAs it is on my test reference systems I have a 50% improvement per frame\nfor one system, a 20% improvement on another system or we could view it as\na fixed 4.5 millisecond improvement on both.\n\nI implemented the cache around V4L2BufferCache as per Barnabas' suggestion,\nincluding a fixed cache size.\n\nBryan O'Donoghue (8):\n  libcamera: software_isp: debayer_egl: Pass eglImage as parameter to\n    setShaderVariables\n  libcamera: software_isp: debayer_egl: Flag dmabuf use once per session\n    not for every frame\n  libcamera: egl: Add new helper attachTextureToFBO\n  libcamera: egl: Add createOutputTexture2D\n  libcamera: egl: Add updateTexture2D\n  libcamera: egl: Add activateBindTexture\n  libcamera: egl: Drop dmabuf_import_failed_\n  libcamera: software_isp: debayer_egl: Implement input/output frame\n    caching mechanism\n\n include/libcamera/internal/egl.h           |   6 +-\n src/libcamera/egl.cpp                      | 115 +++++++++++++++++----\n src/libcamera/software_isp/debayer_egl.cpp |  98 +++++++++++++-----\n src/libcamera/software_isp/debayer_egl.h   |  14 ++-\n 4 files changed, 185 insertions(+), 48 deletions(-)"}