Patch Detail
Show a patch.
GET /api/patches/27240/?format=api
{ "id": 27240, "url": "https://patchwork.libcamera.org/api/patches/27240/?format=api", "web_url": "https://patchwork.libcamera.org/patch/27240/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260706110120.2509826-4-bryan.odonoghue@linaro.org>", "date": "2026-07-06T11:01:16", "name": "[v4,3/7] libcamera: egl: Add createOutputTexture2D", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "090cbe6cdf9c3f19b4c6ca5871091f1b55c1b291", "submitter": { "id": 175, "url": "https://patchwork.libcamera.org/api/people/175/?format=api", "name": "Bryan O'Donoghue", "email": "bryan.odonoghue@linaro.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/27240/mbox/", "series": [ { "id": 6040, "url": "https://patchwork.libcamera.org/api/series/6040/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6040", "date": "2026-07-06T11:01:13", "name": "libcamera: software_isp: gpu: Add go faster stripes", "version": 4, "mbox": "https://patchwork.libcamera.org/series/6040/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/27240/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/27240/checks/", "tags": {}, "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 A7FBCC330F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 6 Jul 2026 11:01:37 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5DF476600A;\n\tMon, 6 Jul 2026 13:01:37 +0200 (CEST)", "from mail-wm1-x334.google.com (mail-wm1-x334.google.com\n\t[IPv6:2a00:1450:4864:20::334])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AEB2966009\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 6 Jul 2026 13:01:33 +0200 (CEST)", "by mail-wm1-x334.google.com with SMTP id\n\t5b1f17b1804b1-493bb510ce4so21686625e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 06 Jul 2026 04:01:33 -0700 (PDT)", "from inspiron14p-linux ([109.77.44.220])\n\tby smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-47aa0960634sm25190846f8f.26.2026.07.06.04.01.32\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 06 Jul 2026 04:01:32 -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=\"gPkkj/me\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1783335693; x=1783940493;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=39/wg15FASnXwYPaNXZRuMgZsbEtqLQEwRNrqEYsJnk=;\n\tb=gPkkj/mebEFhnO2hWCz1NWb8//93i73O7xH43v0yDIFYs5CJrhUFZFPNcHtt3dfKCu\n\t56wfP2pj9unSjIbqVSmaGGRsv8EbNZwz+e3KAuwzMOAOOIZ4x8LrNeN+mmDQ/T6TZmdl\n\tFideonFLETVfAW007ZrkZpK7MOocFq6W/hLefclHbv5HGjmaDWPL7l+eAliop5QiYvWL\n\tJwkMGr5yNT5AgUn+DZu5B6MswA8mCJG21CVvmuSTAMkUkXZK4S2O88oRE3jWb5a/JbKw\n\t0CTcOoUBi1nFi+08G4ndy3sN1YvPFNu5oeypnehSiESsqDF5Xdj2ia79G3z26/qZj3+g\n\t9okA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1783335693; x=1783940493;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to;\n\tbh=39/wg15FASnXwYPaNXZRuMgZsbEtqLQEwRNrqEYsJnk=;\n\tb=KnwEqj8IuF27Jsy3k/ahjjlliqaWgsS1Grh8aDZpaXYQrK3p9+D0eCbr5nqisNEuZ2\n\t+2Z4mmJc/7aA296zlucC0tseB9uM3mR1ENpdmFqQ6d6kOyqnO5w+pRA3w3XODRw8mTAF\n\tH8Sh3CcJWw8fqoklZQH6jtDuSuDBntppkErQiE9JuR7GhYJN8pTX+Ea6qCqbqyPaqiDo\n\tiUpqRS+3c75bTNJQoRw008RITsIZHe2oOPGctjRhpKi4tjb3XZjLDMRi5E8CW6tWFtPN\n\tJ+8jQZqTzK5o23TnCS4ALezZdXAwd06fB4/apTfPD/1mof96JJA18evb+Lz5+4Wjans/\n\tVasA==", "X-Gm-Message-State": "AOJu0YzlxYuN6mR10cPb8koyJI03BCdWay/LXmZ2fgXqBEFJ0V/QPXhn\n\tKermmVxW8WBDrlPnlgCF9/dlaGB8eLhRZf3hxz4fvP3KVtHEXqQW9ws4WVE4CgLcg9UmDinQFFK\n\tlqb9T", "X-Gm-Gg": "AfdE7clLqp8c5KM+CWLJeveN1IlKDew1CBzRlpE/PB0bfDvl+mF9jGclfdznk7aj86Y\n\taZO3aIG4F7CELPYdc7ZwU+4S8y2I+vX/w6AFdAs9z1gznfeEDyhSCHgqX30nWwDrm/3BlhtjRm7\n\tkrBcH59kVNN+zxa//rnhwakAoMZw3AR3zqfBlNiDJoBA9rIQdRN2LzF5KOPuaCUpj0R6Zvfrr4i\n\tbfDSu39w4skyz5gi1O/m90IMnDURY9H8HXhxiTASMIxN5dmXKBzdk2jRiYMBDGd8YJC0lKcNJOM\n\td2hPNLiagOXVJO6GJ666rsXgWDnvTYJdEV9n+AgCnaOejNLQYqCHFXwrnErZnEFK6E01hQIL50O\n\tPJzj6Yp7DqBiJvl3C6ZplOTugLhbQ5AR84ip5Ck79nCI19Ya6RJiDho/pD3+UBvFPTHF4Xt68l8\n\tYmnCAqzWLbknr8pVvBKFo7PrCcZppb", "X-Received": "by 2002:a05:600c:528c:b0:493:c194:4e7a with SMTP id\n\t5b1f17b1804b1-493d11d3d1dmr114044425e9.3.1783335693085; \n\tMon, 06 Jul 2026 04:01:33 -0700 (PDT)", "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "bryan.odonoghue@linaro.org, pavel@ucw.cz,\n\tMilan Zamazal <mzamazal@redhat.com>", "Subject": "[PATCH v4 3/7] libcamera: egl: Add createOutputTexture2D", "Date": "Mon, 6 Jul 2026 12:01:16 +0100", "Message-ID": "<20260706110120.2509826-4-bryan.odonoghue@linaro.org>", "X-Mailer": "git-send-email 2.54.0", "In-Reply-To": "<20260706110120.2509826-1-bryan.odonoghue@linaro.org>", "References": "<20260706110120.2509826-1-bryan.odonoghue@linaro.org>", "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": "Creates a non-dmabuf texture attached to a frame-buffer-object FBO, which\nallows for render-to-texture.\n\nReviewed-by: Milan Zamazal <mzamazal@redhat.com>\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n include/libcamera/internal/egl.h | 1 +\n src/libcamera/egl.cpp | 13 +++++++++++++\n 2 files changed, 14 insertions(+)", "diff": "diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h\nindex 085a371f3..1955d09c5 100644\n--- a/include/libcamera/internal/egl.h\n+++ b/include/libcamera/internal/egl.h\n@@ -108,6 +108,7 @@ public:\n \tint createInputDMABufTexture2D(eGLImage &eglImage, int fd);\n \tint createOutputDMABufTexture2D(eGLImage &eglImage, int fd);\n \tvoid createTexture2D(eGLImage &eglImage, void *data);\n+\tvoid createOutputTexture2D(eGLImage &eglImage);\n \n \tint attachTextureToFBO(eGLImage &eglImage);\n \ndiff --git a/src/libcamera/egl.cpp b/src/libcamera/egl.cpp\nindex ed67aca7b..c1b5514b6 100644\n--- a/src/libcamera/egl.cpp\n+++ b/src/libcamera/egl.cpp\n@@ -329,6 +329,19 @@ bool eGL::isAvailable()\n \treturn true;\n }\n \n+/**\n+ * \\brief Create a 2D texture attached to an FBO for render-to-texture\n+ * \\param[in,out] eglImage EGL image to associate with the texture\n+ *\n+ * Creates a 2D texture in VRAM. Subsequetly attach the texture to the\n+ * texture unit specified in the eGLImage object.\n+ */\n+void eGL::createOutputTexture2D(eGLImage &eglImage)\n+{\n+\tcreateTexture2D(eglImage, NULL);\n+\tattachTextureToFBO(eglImage);\n+}\n+\n /**\n * \\brief Initialise the EGL context\n *\n", "prefixes": [ "v4", "3/7" ] }