Show a patch.

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

{
    "id": 27051,
    "url": "https://patchwork.libcamera.org/api/patches/27051/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27051/",
    "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": "<20260626113325.3218045-5-bryan.odonoghue@linaro.org>",
    "date": "2026-06-26T11:33:21",
    "name": "[v3,4/8] libcamera: egl: Add createOutputTexture2D",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "45f8d0dfb87f347997fc73e1e1011ce71d72f41b",
    "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/27051/mbox/",
    "series": [
        {
            "id": 6020,
            "url": "https://patchwork.libcamera.org/api/series/6020/?format=api",
            "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/patches/27051/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27051/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 B0AE9C3264\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Jun 2026 11:33:46 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 590D765EDD;\n\tFri, 26 Jun 2026 13:33:46 +0200 (CEST)",
            "from mail-wr1-x434.google.com (mail-wr1-x434.google.com\n\t[IPv6:2a00:1450:4864:20::434])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5EEE465902\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Jun 2026 13:33:42 +0200 (CEST)",
            "by mail-wr1-x434.google.com with SMTP id\n\tffacd0b85a97d-461edb387ddso853909f8f.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Jun 2026 04:33:42 -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.40\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 26 Jun 2026 04:33:40 -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=\"gWy/lazx\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1782473622; x=1783078422;\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=jUQq+g3RcjEZNYlYpd5HRjFjfEB5jMW9ZdOwMImzcgY=;\n\tb=gWy/lazxciK1ZKuzVcSvzsUcpdJ5vVycn01MVWlkDXcinSE1OJgxndX0/VU8EXPNNr\n\t1JSff9EVQwmAoOX9u8NmjHzlWdkTqClSEr9hIZyjQ1XDouf/VYbF4BH7Cs/GdC+6KkhW\n\tryxmbxXhKnfDfOQ1K8mF/zR8y7w3/c4Qisr83o9GFF5+zwF9H7tCk4j6HU4XH4h3jqjf\n\tEknxdOxUH+oiQqFXZ8baTVPgl7kkfD/nA6DiVsgheVLve3zlcUVVxvzPs7In46nmqsdj\n\taf818ufFDp2IZsLev6E985MUXxLJNCjf9D1H/ZLIDoc4ORYDTEtksEol/HApnd4zzTt/\n\t4f2g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1782473622; x=1783078422;\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=jUQq+g3RcjEZNYlYpd5HRjFjfEB5jMW9ZdOwMImzcgY=;\n\tb=W/Z5NBGBStgkoQCrVYc+4P7jH2kMlTMn7n0ENUcBEMmGU2z2qLGWcGQX6j6FKpyT8r\n\tVFeQqoErcQs2cvG7s1goWxCcB3vqQdYBowi/ivB7MOSsR8d2mez9CIUI72Z0kkhpHz6u\n\tDs2OGXkbq2kFd4WkNCpV1Jgk8B3yP9Hz3EUAu9Fqe42bgoF4nREXCPkRd2Sit4yqiwZy\n\t6jYaEetscZWtK5izd4tWNUBS776A1Tss0xWKuIVT40Zex8/7dVHu2/tZVh/y+t0P5kBw\n\tSZujN6itoVtXY659pZU4kLX6OE9X3TI41vaFxL8RwfGrc75x8l5pWX0qziTzslUjYRLV\n\tQ5XQ==",
        "X-Gm-Message-State": "AOJu0Yz0niEqQ+WfEcoDTf1+bDfnP2eGJu1Rqh124GTrj4FOdtudM1Vv\n\tZqz4MOc6x330MOg3pDhKh36iGEmaOw3f362XQVSssuoDbMhNv6ycCKU5N/Oo71rfTlQ0UFaUBIR\n\tFTS6e3Fo=",
        "X-Gm-Gg": "AfdE7cltiGYSM6XhEZvJKpeVZ/+u+5uDVdrqhOPSd3mOFVULbqK2yGwOaSIsSUgZKIg\n\tmjbQ8UBm5eLQFgn4CDJclZW7RmhEbTazTkYtdUrMjbvZ5JcYNwhKbYWEknsQcOHdJPSB7xIHYma\n\trkog2KtIwFKHdaEYJHpSxpT4yqdY98PBc8xF1l3jizgTZyd3eQAZ4dF4Go5hd5COl4M2Qs/9GT9\n\tiNtDjyVYpIweJY2JmCDQCMY/KDGzJE606z1fCV1Dgvwk2OtpzP6KdzoHrdC0//0zShsW+vi+kCx\n\ttXbxD06zSYpbXAA5Qei7i+RW+fnpKn6mh3OG7q7hjVyFATlC7mRNxm/u53HEwOw+0ak4g8b9cJr\n\t8/U76M/EQZUEhz0XRSR8Y6kNg4aIDXcirqy+Zj6DxyVCSSXGwvSP4fvp+j3dEjveI2XI3NnAHuJ\n\tJF0alyLge56lg2OX9OTgrYAPJMDQ==",
        "X-Received": "by 2002:a05:600c:a49:b0:492:5bb6:6d4b with SMTP id\n\t5b1f17b1804b1-4926689abd5mr89120615e9.34.1782473621893; \n\tFri, 26 Jun 2026 04:33:41 -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 4/8] libcamera: egl: Add createOutputTexture2D",
        "Date": "Fri, 26 Jun 2026 12:33:21 +0100",
        "Message-ID": "<20260626113325.3218045-5-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<20260626113325.3218045-1-bryan.odonoghue@linaro.org>",
        "References": "<20260626113325.3218045-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            | 13 +++++++++++++\n 2 files changed, 14 insertions(+)",
    "diff": "diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h\nindex 4b0757afd..e24a726dc 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 e83e24606..8e8d61813 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. Subsequet 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": [
        "v3",
        "4/8"
    ]
}