Show a patch.

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

{
    "id": 27256,
    "url": "https://patchwork.libcamera.org/api/patches/27256/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27256/",
    "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": "<20260706222245.247396-4-bryan.odonoghue@linaro.org>",
    "date": "2026-07-06T22:22:42",
    "name": "[v6,3/6] libcamera: egl: Add createOutputTexture2D",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/27256/mbox/",
    "series": [
        {
            "id": 6042,
            "url": "https://patchwork.libcamera.org/api/series/6042/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6042",
            "date": "2026-07-06T22:22:39",
            "name": "libcamera: software_isp: gpu: Add go faster stripes",
            "version": 6,
            "mbox": "https://patchwork.libcamera.org/series/6042/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27256/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27256/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 53051C3308\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  6 Jul 2026 22:23:05 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 180186605B;\n\tTue,  7 Jul 2026 00:23:05 +0200 (CEST)",
            "from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 577C16605C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  7 Jul 2026 00:23:00 +0200 (CEST)",
            "by mail-wr1-x430.google.com with SMTP id\n\tffacd0b85a97d-476d8e647e9so2903213f8f.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 06 Jul 2026 15:23:00 -0700 (PDT)",
            "from inspiron14p-linux ([109.77.44.220])\n\tby smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-47aa039ad21sm27916413f8f.20.2026.07.06.15.22.58\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 06 Jul 2026 15:22:58 -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=\"OHuVteHy\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1783376580; x=1783981380;\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=OHuVteHydBBS5ekNpCdhJumVVcRnckUvAUM9Ny0m1mxGn3SjCmOXNexJ+CUlH4GMrD\n\t6iB9WyYnsznAwAqcJwGSFh6fh6mSYGEGyVDTngwBzqY3WniBq0NyQ7naH/9/RW4fVCum\n\t/07GQtGOrkPaH/3mYDiqQPow92hZ7EBj+R4GPMlpdHNPsg42I5SUpJPvIGvgpC4wMeyt\n\tL2N89JgtexvA7XOWjvwLX3w8dL/TXIZD3uP+pvqEOQj3zocQU5KcFpjmMQQcbZa8wcSY\n\t/KnvD5LA4kqIdzISLF3suo+XC1t/KBjvFHFZWJGvO0eJMchH6gxl9hsbgpSjWsls/Uq2\n\ts5lg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1783376580; x=1783981380;\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=FCtdzvyMuOSA+3ZmLIWJFUYrFKQ6XO+PpLJnYk30mqu8t3P4/UnYdR2BWfqk/vUlIw\n\tobH0STBv0mEq6pKghmld19k5SwCuHQkhyCTg4PLv0cu6Kfxf/wZiFVTjSXNR5PROqgXF\n\tfnXl0r2UWkT2jnMz9JyRLILooC3Q/szi0EAxhmAOL779/SaUP7wkSUrKj1RBErmYvuki\n\ta3rJ7bOfcFO/tli9ZgEs9tiskTl1UBkoQzNuxcJKHd3hH2azD+9HVF0uajWXdTWEYCpw\n\tgTOImI17auTtmeRAgRZ3qMoURsDkzHCa0GXzQvnsNboY2CE54qnswGnRvfzXuKngwtjm\n\t20vQ==",
        "X-Gm-Message-State": "AOJu0YwQlGRcK1Fc3srvPuk3a6t6jWiFD8A/5cPMvLiRx3r8Z7RFYxW5\n\t+Y3ZOF6+jcELtuRoki0TUp3+PlDKJEIYQUMRUYQl57ljfMYlCfBTxN3f+NcZkD0mCUp2itjddbe\n\tLdFfx",
        "X-Gm-Gg": "AfdE7clu9WwC9jD+Q12pVuaiLrGLGlaBcoRXSw50SUaWlx1cte8ndpO9SjI94l2zfMK\n\t/qxEghXuIL/9WTj1FYbNmjQQEe0al2AeHkshd3Mst/MI43Ki5fofI4sAntDUMaqlRmdkP0YyIoE\n\tNlr31fdpVZtmT+7+VMG2OjTfIRhevcDDgJNyy0Jd+ZHC/gjbQIPt4DVJv2t8ehps97i2qZTOeXk\n\tVPksRxRXzuoGOOUvicLX+5q7FnY7t+B+4N5p8o7Dp+r2Xn61UDxqvB7snH9rW7tTRNgKAoF1hql\n\trpLce3YxbT2QMa+YMGSDEHKzka3st+zRaj8ft+6jDwpfCZ6/8WfZilelnkPzR3qUkDpg0QPl5EJ\n\thxoZwKlF9N5VP9I6I2f30K4hwJAyf3TODlbNLzAph99Ec03rT3JgawEeY+XChGtOgAcpC2v+r78\n\tgOdn+ZSIP0mjP1S+1I+9Z+eq7xuFZT",
        "X-Received": "by 2002:a05:6000:604:b0:473:506a:e47c with SMTP id\n\tffacd0b85a97d-47de661f7e1mr2308962f8f.26.1783376579791; \n\tMon, 06 Jul 2026 15:22:59 -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 v6 3/6] libcamera: egl: Add createOutputTexture2D",
        "Date": "Mon,  6 Jul 2026 23:22:42 +0100",
        "Message-ID": "<20260706222245.247396-4-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<20260706222245.247396-1-bryan.odonoghue@linaro.org>",
        "References": "<20260706222245.247396-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": [
        "v6",
        "3/6"
    ]
}