Show a patch.

GET /api/1.1/patches/27248/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 27248,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/27248/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27248/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20260706113900.2530549-4-bryan.odonoghue@linaro.org>",
    "date": "2026-07-06T11:38:56",
    "name": "[v5,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/1.1/people/175/?format=api",
        "name": "Bryan O'Donoghue",
        "email": "bryan.odonoghue@linaro.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27248/mbox/",
    "series": [
        {
            "id": 6041,
            "url": "https://patchwork.libcamera.org/api/1.1/series/6041/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6041",
            "date": "2026-07-06T11:38:53",
            "name": "libcamera: software_isp: gpu: Add go faster stripes",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/6041/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27248/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27248/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 BBC7BC330A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  6 Jul 2026 11:39:18 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 49C4D6604D;\n\tMon,  6 Jul 2026 13:39:18 +0200 (CEST)",
            "from mail-wr1-x432.google.com (mail-wr1-x432.google.com\n\t[IPv6:2a00:1450:4864:20::432])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F05866601C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  6 Jul 2026 13:39:13 +0200 (CEST)",
            "by mail-wr1-x432.google.com with SMTP id\n\tffacd0b85a97d-47d6c634f45so968045f8f.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 06 Jul 2026 04:39:13 -0700 (PDT)",
            "from inspiron14p-linux ([109.77.44.220])\n\tby smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-47a9de1e6ccsm24796084f8f.5.2026.07.06.04.39.12\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 06 Jul 2026 04:39:13 -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=\"d7EZIqQq\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1783337953; x=1783942753;\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=d7EZIqQqOoKTvNxQFXsowZcCnhvVcy1pW9TMPv7kf5OC5pycHTkl36MeVGiCrUjhYr\n\tigJV1dRennq+x+PzT0hEmaZLnykcHyFWziJuc4q7Qltn3GjL+H3IXxUsSlmYVee4iBmp\n\tu1xIH6qxF1X4zIs6rkEjYAIG3IUteSLO9Ck7XXFnIrDp16ezJIgX5rZXapscU/TEHMDf\n\tYyuarIv69S5txv63BIjwFVw5Ue5Mz9VMwO2bmMndWiWInu5k9tBnt6NlKDacJLqOwa75\n\taHhfgAX2GOsW7xt4dKYiOvxzvxlo754H0CIQIPzBT1oOBFwe1lWMadBB0NwBQFKL3+EM\n\tVx6A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1783337953; x=1783942753;\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=A1Jt+hKcY6YWW1WO2o5+9IM0DyHsFd8gJVjY1aehComCwaRlMoUA8yga+CZ2wvxq/P\n\tG8x9YI/q9GcfinTCVU89/Hkm+26f0eoP0Imapzri3XYkyPa24jDEtyAnbutpMhTiDZiy\n\tQ82wKJp7YaNvv+k7kCwdzYKBtYQljHkCG8zyVT+joOE2xDidjj9aMm1o+TKS5dDCGK9s\n\tqBrQ8YvNFizPZurwkghSPx7x8Y4eVuOCUwp6M2TjBMh6mLvUOyj7YHpFus1BqA5QZ80l\n\tMtWH6DPF7K/2BB45XhtIR9dL5mQ9whyPbent9Xtfgz+bk2O4gz+4vGrXbXRsuxa9kgAd\n\t9CpA==",
        "X-Gm-Message-State": "AOJu0YxSUtt2zB2Ait4K/CofDOtAgKjDDlPnK8q0FQ/9DmpuQxsX9dhe\n\t7AG/uQHcV2BWiQQcpgRMtp7fqJI3HwzV7cziszsWPkwFMS0aQ1jG/u/gJZv9Ed7daKy/nkGckaN\n\t/+oNt",
        "X-Gm-Gg": "AfdE7clWcJefh6vBZa7hyct0K/EqqN9/XjEmraohGwRtfGqlwjUAffZDSPIJWDXE8w+\n\tU9BFk0P/MiDdJciY9VJGnNJ0AlScU0vMXOMC9cHS3fN7nnTa3QDRcvoS3uUeqRBlGQhQGsk7PYZ\n\tX/xeQoJkD1xM0A2rP7/EADv6RUS7SknhmPeV8w3oZxHbsCZ0Do4aXkcrrb7hSMk/GY+8e8EEE/J\n\t9GSZ2uUtKITyQwA0kGJgAu7Qg5VWL7mEM8ag2SVhW1rdAA62rnbgWkOIoTwuFeB1CzWYm2JTOvR\n\tX9o9dp9xswb3fnNWFV/MUyZUbGUME1xZlnLlPx27SJKZLzuca7LIUFO8B87ZZqGfmDjjEzn5mt9\n\tKScG/KAoQe+zDCgnQuY7xCf4jpjzzXkKLEWHR9UzVKsvAbwl61HbjSXjtSBmIZrvx7OtZXDXSzv\n\tJ78/zFK0YIKNiRoRwggD5YC0NxQpqm",
        "X-Received": "by 2002:adf:f00f:0:b0:475:f0c2:5b04 with SMTP id\n\tffacd0b85a97d-47aad54d643mr8112013f8f.58.1783337953466; \n\tMon, 06 Jul 2026 04:39:13 -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 v5 3/7] libcamera: egl: Add createOutputTexture2D",
        "Date": "Mon,  6 Jul 2026 12:38:56 +0100",
        "Message-ID": "<20260706113900.2530549-4-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<20260706113900.2530549-1-bryan.odonoghue@linaro.org>",
        "References": "<20260706113900.2530549-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": [
        "v5",
        "3/7"
    ]
}