Show a patch.

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

{
    "id": 25435,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/25435/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/25435/",
    "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": "<20251210005354.44726-19-bryan.odonoghue@linaro.org>",
    "date": "2025-12-10T00:53:46",
    "name": "[v7,18/26] libcamera: software_isp: debayer_egl: Make gpuisp default softisp mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "33d2a40c4e1ef63dcb409a6503babec036adeec7",
    "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/25435/mbox/",
    "series": [
        {
            "id": 5645,
            "url": "https://patchwork.libcamera.org/api/1.1/series/5645/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5645",
            "date": "2025-12-10T00:53:28",
            "name": "Add GLES 2.0 GPUISP to libcamera",
            "version": 7,
            "mbox": "https://patchwork.libcamera.org/series/5645/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/25435/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/25435/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 777E9C3257\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 10 Dec 2025 00:55:04 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3291D61492;\n\tWed, 10 Dec 2025 01:55:04 +0100 (CET)",
            "from mail-pf1-x430.google.com (mail-pf1-x430.google.com\n\t[IPv6:2607:f8b0:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3F96561487\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 10 Dec 2025 01:55:02 +0100 (CET)",
            "by mail-pf1-x430.google.com with SMTP id\n\td2e1a72fcca58-7b9c17dd591so5757379b3a.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 09 Dec 2025 16:55:02 -0800 (PST)",
            "from inspiron14p-linux (p96936b06.osaknt01.ap.so-net.ne.jp.\n\t[150.147.107.6]) by smtp.gmail.com with ESMTPSA id\n\t41be03b00d2f7-bf6875cc8eesm16057762a12.16.2025.12.09.16.54.57\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 09 Dec 2025 16:55:00 -0800 (PST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"Uuvl52MZ\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1765328101; x=1765932901;\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=7oua+zu5TdyXrsQakdxruWuygiutsWPpfC/ccVXxgyg=;\n\tb=Uuvl52MZNQ7xQdEfP+MK9PiiYuXdlewWkg3upcO56moJcDfhogeagpQkVF074RkXfo\n\tQN2hQMOJrdScWTFQolT0P58Yj+Vkm3XiwpiIZyD8RPjn0uXPHTyTTfvQaslRDOtCASla\n\tG4sqc18Jlep9qXkLQM4+HQF5xPzQMQh/WV1nYwo34M44o816PASDyaGIt4GYBNF3sn0j\n\tgswMWLf5TsV/zlFTi2oG/OkQUU8Kv3TcKQkEHlDU3IqHUPMY3dCPSHoOdBfrnbzt9fqn\n\taR1IiSpKxpULQeFk7Lnytu3gybZ/Yi9kkwgFYhs/Zbj0wFslbOcM7bEtwk1jDTwgRY+o\n\t5kqg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1765328101; x=1765932901;\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=7oua+zu5TdyXrsQakdxruWuygiutsWPpfC/ccVXxgyg=;\n\tb=TZLofuEg2xkaT+Nu1OO+QnVSmGnq0Tr+Pq5zdRmZGaO9u8SyWgjf1QcIBICw3w2uu/\n\tlplxOBa+L9TjdIb5jh54wZ3k1a1Meqg4YtPKeDkKXk3xYdItC3E+XV8BS0WVwpNhMJWz\n\tc9sjW8GqPb/YEct73eT94JqAIF9oJ5cxPzeZcXFeaYDxvfAp6dRZfq2h3BR//ihc7piB\n\tVfKTd7jTRCYzHPt6R3pUP51z0qyBeNQ+fk5HHUkgKQQiU0DQHstfqAXn8RqL3nAh6ZAJ\n\tRW1hEMcjU1nLyUF9YySP55Uvb2eX3wG2XZX0TsLDd983V2XdVMpBrfFmrOhLWyhC24Gt\n\tE1XA==",
        "X-Gm-Message-State": "AOJu0Yz8eLMuvrYFtSuDj7jqQP6hWHeDss5QPXcBxSK0gTsiyoosN55Z\n\tU6rQOi25hH6pOboZtT/TeS1D0a8JsYhqvNY+LLbA/fqC2CEzrHM5x9CkAa7b5f2MuUsR2EvOjxn\n\tn9O3p",
        "X-Gm-Gg": "ASbGnctbUl8QcmD1CPF1/alL4nt1RrDGAC45KZQ3v1rjMlhVC7rLEqUv5/ar81amDEl\n\t881wzO2pQHXTy1C85Gr8s+H4DehmaaPee2mh/JMaOp9nXLe/f/srvTCD3BkZU41kmzxh744OdHG\n\tJNvpdtQSSr9m/BDEC3smgv+15Sz/9S/DkGB+GJYppP0n4WAqK1l+p9yCUz+gGvRaksh6vJpVdAm\n\tXKZge1snB8vR0MFlmQeXx9/7OGnjSG+tz5sPLoeugdra10Hgh3Mn3HnnMt6qit9LGoldtZMtTmI\n\tjD6n9TsBzDaXyypXQ87t5AzWhgfvV3gwvUpVphHXp18hbQAQl5REC/1rMxC43CeXBGd10rhGykt\n\tuk1mZVUR5bN1EPEcS4YgvgwPds9ZbgCfpn3Moz4QXFwNeDoyXBAuZkpKGdd2fJd1lmL3C/9ERR5\n\tYh3A2WC7GvvTIY1FdU/a+lXz7HQGIw/9XuHTm+QBOOX76InhKeQZ5k2oQhVFstIOL2nyv4wNzEV\n\tKI=",
        "X-Google-Smtp-Source": "AGHT+IF66/VkqdYjfVTJxU5FBwbob25ZO7taa+biVvvozgY5mwxNRWEYxjnHuXtFT6kFxAQww6NozA==",
        "X-Received": "by 2002:a05:6a20:918c:b0:366:14b2:315 with SMTP id\n\tadf61e73a8af0-366e35bb9c6mr587131637.72.1765328100492; \n\tTue, 09 Dec 2025 16:55:00 -0800 (PST)",
        "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "pavel@ucw.cz,\n\tBryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "Subject": "[PATCH v7 18/26] libcamera: software_isp: debayer_egl: Make gpuisp\n\tdefault softisp mode",
        "Date": "Wed, 10 Dec 2025 00:53:46 +0000",
        "Message-ID": "<20251210005354.44726-19-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20251210005354.44726-1-bryan.odonoghue@linaro.org>",
        "References": "<20251210005354.44726-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": "In some cases the GPU can deliver 15x performance in Debayer with the\nCCM on, reference hardware Qualcomm RB5 with IMX512 sensor.\n\nGiven this large performance difference it makes sense to make GPUISP\nthe default for the Software ISP.\n\nIf LIBCAMERA_SOFTISP_MODE is omitted gpu will be the default. If\nlibcamera is compiled without gpuisp support, CPU Debayer will be used.\n\nIt is still possible to select CPU mode with LIBCAMERA_SOFISP_MODE=cpu.\n\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n src/libcamera/software_isp/software_isp.cpp | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/src/libcamera/software_isp/software_isp.cpp b/src/libcamera/software_isp/software_isp.cpp\nindex efe44e393..06f93ee0f 100644\n--- a/src/libcamera/software_isp/software_isp.cpp\n+++ b/src/libcamera/software_isp/software_isp.cpp\n@@ -123,8 +123,15 @@ SoftwareIsp::SoftwareIsp(PipelineHandler *pipe, const CameraSensor *sensor,\n \n #if HAVE_DEBAYER_EGL\n \tstd::optional<std::string> softISPMode = configuration.envOption(\"LIBCAMERA_SOFTISP_MODE\", { \"software_isp\", \"mode\" });\n+\tif (softISPMode) {\n+\t\tif (softISPMode != \"gpu\" && softISPMode != \"cpu\") {\n+\t\t\tLOG(SoftwareIsp, Error) << \"LIBCAMERA_SOFISP_MODE \" << softISPMode.value() << \" invalid. \"\n+\t\t\t\t\t\t<< \"must be \\\"cpu\\\" or \\\"gpu\\\"\";\n+\t\t\treturn;\n+\t\t}\n+\t}\n \n-\tif (softISPMode && softISPMode == \"gpu\") {\n+\tif (!softISPMode || softISPMode == \"gpu\") {\n \t\tdebayer_ = std::make_unique<DebayerEGL>(std::move(stats), configuration);\n \t\tif (!debayer_) {\n \t\t\tLOG(SoftwareIsp, Error) << \"Failed to instantiate GPUISP\";\n",
    "prefixes": [
        "v7",
        "18/26"
    ]
}