Patch Detail
Show a patch.
GET /api/patches/27031/?format=api
{ "id": 27031, "url": "https://patchwork.libcamera.org/api/patches/27031/?format=api", "web_url": "https://patchwork.libcamera.org/patch/27031/", "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": "<20260624085849.873784-6-bryan.odonoghue@linaro.org>", "date": "2026-06-24T08:58:44", "name": "[05/10] libcamera: egl: Add createOutputTexture2D", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "e013561d5cf35bf525ed8b39b1d5affc18c1c17d", "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/27031/mbox/", "series": [ { "id": 6015, "url": "https://patchwork.libcamera.org/api/series/6015/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6015", "date": "2026-06-24T08:58:39", "name": "libcamera: software_isp: gpu: Add go faster stripes", "version": 1, "mbox": "https://patchwork.libcamera.org/series/6015/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/27031/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/27031/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 C0308C3306\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 24 Jun 2026 08:59:15 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7754B65890;\n\tWed, 24 Jun 2026 10:59:13 +0200 (CEST)", "from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com\n\t[IPv6:2a00:1450:4864:20::32c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DCB26588B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 24 Jun 2026 10:59:04 +0200 (CEST)", "by mail-wm1-x32c.google.com with SMTP id\n\t5b1f17b1804b1-490cf322ed0so7762595e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 24 Jun 2026 01:59:04 -0700 (PDT)", "from inspiron14p-linux ([109.76.100.231])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-49261063d6esm25128375e9.2.2026.06.24.01.59.03\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 24 Jun 2026 01:59:03 -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=\"ngp6Ewap\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1782291544; x=1782896344;\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=rvAQEVMSRheyGM8shl7R1Ii/hn68JOYesKLUlq7bdnc=;\n\tb=ngp6EwapBGiYmXOHkkFA0kmJ3fg+4idn7+LbBYksXo6KZ1e7PW1rrA1t6HDrJ3pWp9\n\tTG0/UVubh0v7eOz9aLW4i68m7EjR00xd5eSkk6KlOzsIXwCU7KXPoBmCxrtZHbX6m8vP\n\tcu4itzwGQnqTvu9eSPYFvp9j5xglA64VjSwIK91sTABTfTJpjD1b/Kbkp78jXp2NzD14\n\t6kRR0CWNMCOQMdM+mbnp8wayWC3hWp+5JvKceA7fs/yZHpcVpj4x2jFsKhogCuAvu0l6\n\t/kctsX00IMgLsQ6JCWnRj0JObJTlaNgnrm2O+6YFdur3a4LcORb2ogQwX0ackfLDm0z/\n\tUgEQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1782291544; x=1782896344;\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=rvAQEVMSRheyGM8shl7R1Ii/hn68JOYesKLUlq7bdnc=;\n\tb=O/Zg2N9qD80kbHbdstYngMrlTSvREnjPOP34SNrggGtzI/PmP/Sr5li7ieD8IC5M3T\n\tXJwqYZFq9eP/XasAprPCCAuBxdxLESdXJ2w2MVeCiE/CC+C1suJ9rFxFIfTmzTt9hJoA\n\tdW4NvKCl5l7OWwOsK/o1yCm+yLtWznSU/xt209WG6e9bKAxT5WJaZHMYa8eGQ69ABxz4\n\tfQABWgfW6gmKJa1fOnaSJ/OgdF2zoeoKpKolVYEADxPDqja53/+tTP9Y7AWOYrI+te5V\n\t4tsuf1c65neRBu0eI6dcfZY+Cx3ply/I4PHEDasb4bEhlDkxXVetvjGpm65Xi2BOLv9b\n\tLtHA==", "X-Gm-Message-State": "AOJu0YyHGWuY2H49J96ByvD+cg6y64nISE9NOSbTyQKZgTI/hekhK4Aw\n\ttcqmSdv/Qf5CEbOiLsALLUZli5eyJrtGxRSwohBpHdqelUb33hm7bszEK4rq7H78/9Dymuw26pJ\n\tADPjrZ1k=", "X-Gm-Gg": "AfdE7cnuTByU9cf2kNnf3MplyBZwpHHY3owbQbWoSx2CN9dMYwIl1n1JTpZ3NikinvI\n\t2hL0LJ17SIngearmeuLyOitr/4xXc/srsqQWz1ZPls/5e78n8kkAuMAqaUmKVXZrIX9mLyr22pa\n\tUF4fzZcQ8p+MHPXQQPIhsVZjiCFodMbdlMSnvLNK3BZMlERU6kBzQsD4SFF9ETbN+/UvjRmC+c0\n\tcM8fzNG8Wm+4rlkO5DRL+P7ozjuQ6y/CRuG/RRCXdcF7zgazt+H1iMe22xBJNvd6HlJRBuWnV7A\n\tcFJxYwdFgb1qbkYrwJ0u8KbpSR0OEe0SNDqVu6uHdroCQVIom1BaXGhPhYN+Cd2gqINaR3Xskby\n\tK65oUXPcnvv6kB1POZrbzH4qVZnUQp1UzJLr+EbH5xIsoy/UHBqOrD7WJMyMtx5tZZCVm9vRyGG\n\tuU4mmkpEQMCo7dCyAdogWL8ccdHRis", "X-Received": "by 2002:a05:600c:3110:b0:492:51aa:2d46 with SMTP id\n\t5b1f17b1804b1-492608521a0mr29036095e9.13.1782291543628; \n\tWed, 24 Jun 2026 01:59:03 -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 05/10] libcamera: egl: Add createOutputTexture2D", "Date": "Wed, 24 Jun 2026 09:58:44 +0100", "Message-ID": "<20260624085849.873784-6-bryan.odonoghue@linaro.org>", "X-Mailer": "git-send-email 2.54.0", "In-Reply-To": "<20260624085849.873784-1-bryan.odonoghue@linaro.org>", "References": "<20260624085849.873784-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\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n include/libcamera/internal/egl.h | 1 +\n src/libcamera/egl.cpp | 16 ++++++++++++++++\n 2 files changed, 17 insertions(+)", "diff": "diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h\nindex 0709f9019..b992baf25 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 createInputTexture2D(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 2825d34d3..123653b58 100644\n--- a/src/libcamera/egl.cpp\n+++ b/src/libcamera/egl.cpp\n@@ -345,6 +345,22 @@ 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+ * \\param[in] format OpenGL internal format (e.g., GL_RGB, GL_RGBA)\n+ *\n+ * Creates a 2D texture in VRAM. The texture\n+ * is configured with nearest filtering and clamp-to-edge wrapping. This\n+ * is useful for uploading static data like lookup tables or uniform color\n+ * matrices to the GPU.\n+ */\n+void eGL::createOutputTexture2D(eGLImage &eglImage)\n+{\n+\tcreateInputTexture2D(eglImage, NULL);\n+\tattachTextureToFBO(eglImage);\n+}\n+\n /**\n * \\brief Initialise the EGL context\n *\n", "prefixes": [ "05/10" ] }