Show a patch.

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

{
    "id": 25904,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/25904/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/25904/",
    "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": "<20260121090854.27483-2-robert.mader@collabora.com>",
    "date": "2026-01-21T09:08:53",
    "name": "[v4,2/3] egl: Add workaround for Mesa <= 22.2",
    "commit_ref": "a5e01866ae17454252101a7f60b8042eab028b9d",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ab4f0f277ea4425a6dc7bb8a10a3c358685d2e43",
    "submitter": {
        "id": 140,
        "url": "https://patchwork.libcamera.org/api/1.1/people/140/?format=api",
        "name": "Robert Mader",
        "email": "robert.mader@collabora.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/25904/mbox/",
    "series": [
        {
            "id": 5728,
            "url": "https://patchwork.libcamera.org/api/1.1/series/5728/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5728",
            "date": "2026-01-21T09:08:52",
            "name": "[v4,1/3] egl: Use the Mesa surfaceless platform instead of GBM",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/5728/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/25904/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/25904/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 82D2EC3220\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 21 Jan 2026 09:09:41 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3514A61FC8;\n\tWed, 21 Jan 2026 10:09:41 +0100 (CET)",
            "from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com\n\t[136.143.188.112])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7D8A961FC4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 21 Jan 2026 10:09:39 +0100 (CET)",
            "by mx.zohomail.com with SMTPS id 1768986574441237.22933348087736; \n\tWed, 21 Jan 2026 01:09:34 -0800 (PST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=collabora.com\n\theader.i=robert.mader@collabora.com header.b=\"fX2wiysW\"; \n\tdkim-atps=neutral",
        "ARC-Seal": "i=1; a=rsa-sha256; t=1768986576; cv=none; \n\td=zohomail.com; s=zohoarc; \n\tb=ZfinL/nhq6DRQpIG/h/XQdUVWumlJy07t8NB7ouhr8vCJ1Ot1oI9q7ZPBKUeljGaedk1Wnmgqs8WdoiPLGy4b8Ckc99VkMZIsWqJtT3vUut9v1iVXxnW4nsEY/Nc2jnYdS91vszORZC9FrZDCBiZp4V5gwudvDsVfb8rRnJCHtM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; \n\ts=zohoarc; t=1768986576;\n\th=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To;\n\tbh=itY7biLqCAllWqA6C4kfZnzkwFvdl1kmXHpnGgg6qJU=; \n\tb=PJfCc8W4Pna6NMDod4tmYnpyC5ktcSWLcxGD8GFYTb4T1ef7tatWOvy+av8Or/+VJQ9GIB7Q+DM+fqLHX/vV3nwyys4lIE4v9jUKKCevsrYTQR0yrL9VGS+2YQqbPiCXaJeylY1Xkp3zpaeojwlIa+PKv73PXStN4741YqHAtmQ=",
        "ARC-Authentication-Results": "i=1; mx.zohomail.com;\n\tdkim=pass  header.i=collabora.com;\n\tspf=pass  smtp.mailfrom=robert.mader@collabora.com;\n\tdmarc=pass header.from=<robert.mader@collabora.com>",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1768986576;\n\ts=zohomail; d=collabora.com; i=robert.mader@collabora.com;\n\th=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To;\n\tbh=itY7biLqCAllWqA6C4kfZnzkwFvdl1kmXHpnGgg6qJU=;\n\tb=fX2wiysWVcPyUm1Ci+cO3lvrcH82fkBHGCp1ZA9cAh95vQKKu+Q+MRCOeQyUSyFH\n\tkV2EbFirL+QMhYkOZpuns8lW93/IxKrrgUV4hnvhkN+DwBJKQMKMXVU4dR2PgzqLWcE\n\t/V0fKa8s5DcPOktnhK+VcDx7XIvKr+bR6KdfPEXM=",
        "From": "Robert Mader <robert.mader@collabora.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Robert Mader <robert.mader@collabora.com>, =?utf-8?q?Barnab=C3=A1s_P?=\n\t=?utf-8?b?xZFjemU=?= <barnabas.pocze@ideasonboard.com>",
        "Subject": "[PATCH v4 2/3] egl: Add workaround for Mesa <= 22.2",
        "Date": "Wed, 21 Jan 2026 10:08:53 +0100",
        "Message-ID": "<20260121090854.27483-2-robert.mader@collabora.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260121090854.27483-1-robert.mader@collabora.com>",
        "References": "<20260121090854.27483-1-robert.mader@collabora.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "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": "Older Mesa versions with EGL headers missing the change from\nhttps://github.com/KhronosGroup/EGL-Registry/pull/130\npull in Xlib headers, causing build issues.\n\nThis notably happens on the Debian 11 CI image, which until now does not\nbuild the shared EGL code due to missing GBM dependencies. That will\nchange in the following commit, thus include a workaround.\n\nSuggested-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\nSigned-off-by: Robert Mader <robert.mader@collabora.com>\n\n---\n\nChanges in v4:\n - Pulled this change into a dedicated commit\n - Fixed comment style\n - Fixed Mesa version in comment\n---\n include/libcamera/internal/egl.h | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/include/libcamera/internal/egl.h b/include/libcamera/internal/egl.h\nindex 630345ea7..8a2d96d7a 100644\n--- a/include/libcamera/internal/egl.h\n+++ b/include/libcamera/internal/egl.h\n@@ -16,6 +16,12 @@\n #include <libcamera/base/span.h>\n #include <libcamera/base/utils.h>\n \n+/*\n+ * Workaround for build issues on Mesa <= 22.2, see\n+ * https://github.com/KhronosGroup/EGL-Registry/pull/130\n+ */\n+#define EGL_NO_X11\n+\n #define EGL_EGLEXT_PROTOTYPES\n #include <EGL/egl.h>\n #include <EGL/eglext.h>\n",
    "prefixes": [
        "v4",
        "2/3"
    ]
}