Show a patch.

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

{
    "id": 19542,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/19542/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/19542/",
    "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": "<20240226132544.82817-1-jacopo.mondi@ideasonboard.com>",
    "date": "2024-02-26T13:25:43",
    "name": "drm/fourcc: Add RGB161616 and BGR161616 formats",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "c60e283410d8c8d52401aeaa450da55cc111ec55",
    "submitter": {
        "id": 143,
        "url": "https://patchwork.libcamera.org/api/1.1/people/143/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo.mondi@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/19542/mbox/",
    "series": [
        {
            "id": 4182,
            "url": "https://patchwork.libcamera.org/api/1.1/series/4182/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4182",
            "date": "2024-02-26T13:25:43",
            "name": "drm/fourcc: Add RGB161616 and BGR161616 formats",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4182/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/19542/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/19542/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 9CCB3BD160\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 26 Feb 2024 13:26:05 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D981462871;\n\tMon, 26 Feb 2024 14:26:04 +0100 (CET)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 064946285F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 26 Feb 2024 14:26:03 +0100 (CET)",
            "from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it\n\t[93.61.96.190])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id DCA26673;\n\tMon, 26 Feb 2024 14:25:50 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"UqhwGIHr\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1708953951;\n\tbh=9Q69wk8UZ/mvNJ+uyeRWaMFSdgN0Z8O7q2rXBun5JYM=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=UqhwGIHrXSX8t6SRZu4ULVdIO521wdtD507q7DfGhsAslkvbb/DJVvQmKaomywn/M\n\tYwogIoY8jV8ALilLVrJilhgXG0TsB4PyVRXXyKr4gcN4nN4OnkBd6Lk5MVV9ouZy77\n\tG1yYV0Jdak1L93lNj/vXGLdXURDLORXOzlk09DfA=",
        "From": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "To": "David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,\n\tMaarten Lankhorst <maarten.lankhorst@linux.intel.com>,\n\tMaxime Ripard <mripard@kernel.org>,\n\tThomas Zimmermann <tzimmermann@suse.de>,\n\tNaushir Patuck <naush@raspberrypi.com>",
        "Subject": "[PATCH] drm/fourcc: Add RGB161616 and BGR161616 formats",
        "Date": "Mon, 26 Feb 2024 14:25:43 +0100",
        "Message-ID": "<20240226132544.82817-1-jacopo.mondi@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "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>",
        "Cc": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org, dri-devel@lists.freedesktop.org",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add FourCC definitions for the 48-bit RGB/BGR formats to the\nDRM/KMS uapi.\n\nThe format will be used by the Raspberry Pi PiSP Back End,\nsupported by a V4L2 driver in kernel space and by libcamera in\nuserspace, which uses the DRM FourCC identifiers.\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n drivers/gpu/drm/drm_fourcc.c  | 8 ++++++++\n include/uapi/drm/drm_fourcc.h | 4 ++++\n 2 files changed, 12 insertions(+)\n\n--\n2.43.0",
    "diff": "diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c\nindex 193cf8ed7912..908f20b96fd5 100644\n--- a/drivers/gpu/drm/drm_fourcc.c\n+++ b/drivers/gpu/drm/drm_fourcc.c\n@@ -210,6 +210,14 @@ const struct drm_format_info *__drm_format_info(u32 format)\n \t\t{ .format = DRM_FORMAT_ABGR2101010,\t.depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\n \t\t{ .format = DRM_FORMAT_RGBA1010102,\t.depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\n \t\t{ .format = DRM_FORMAT_BGRA1010102,\t.depth = 30, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\n+\t\t{ .format = DRM_FORMAT_RGB161616,\t.depth = 0,\n+\t\t  .num_planes = 1, .char_per_block = { 6, 0, 0 },\n+\t\t  .block_w = { 1, 0, 0 }, .block_h = { 1, 0, 0 },\n+\t\t  .hsub = 1, .vsub = 1, .has_alpha = false },\n+\t\t{ .format = DRM_FORMAT_BGR161616,\t.depth = 0,\n+\t\t  .num_planes = 1, .char_per_block = { 6, 0, 0 },\n+\t\t  .block_w = { 1, 0, 0 }, .block_h = { 1, 0, 0 },\n+\t\t  .hsub = 1, .vsub = 1, .has_alpha = false },\n \t\t{ .format = DRM_FORMAT_ARGB8888,\t.depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\n \t\t{ .format = DRM_FORMAT_ABGR8888,\t.depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\n \t\t{ .format = DRM_FORMAT_RGBA8888,\t.depth = 32, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true },\ndiff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h\nindex 84d502e42961..00db00083175 100644\n--- a/include/uapi/drm/drm_fourcc.h\n+++ b/include/uapi/drm/drm_fourcc.h\n@@ -210,6 +210,10 @@ extern \"C\" {\n #define DRM_FORMAT_RGBA1010102\tfourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */\n #define DRM_FORMAT_BGRA1010102\tfourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */\n\n+/* 48 bpp RGB */\n+#define DRM_FORMAT_RGB161616 fourcc_code('R', 'G', '4', '8') /* [47:0] R:G:B 16:16:16 little endian */\n+#define DRM_FORMAT_BGR161616 fourcc_code('B', 'G', '4', '8') /* [47:0] B:G:R 16:16:16 little endian */\n+\n /* 64 bpp RGB */\n #define DRM_FORMAT_XRGB16161616\tfourcc_code('X', 'R', '4', '8') /* [63:0] x:R:G:B 16:16:16:16 little endian */\n #define DRM_FORMAT_XBGR16161616\tfourcc_code('X', 'B', '4', '8') /* [63:0] x:B:G:R 16:16:16:16 little endian */\n",
    "prefixes": []
}