Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5BBF3EF06F7 for ; Sun, 8 Feb 2026 22:47:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C262C10E156; Sun, 8 Feb 2026 22:47:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=emersion.fr header.i=@emersion.fr header.b="PPSn2lqu"; dkim-atps=neutral Received: from mail-244102.protonmail.ch (mail-244102.protonmail.ch [109.224.244.102]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5B28E10E156 for ; Sun, 8 Feb 2026 22:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1770590850; x=1770850050; bh=wqvSifJA2g9ZlCjzGK9GoqDXNk7dXi6L6lzV8lv3j5E=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PPSn2lquBawtgrTTguSQLV6uCJswvmMB0aXtyr9+h/5nwGzB4RbRjunaR6vAfkFJm cMPCtWCIINycrHnqjA7/lHdMfVsJVjA8BWi5xwFFsCXc0zUTHddO5+TXOth8RKyuMd P/UYcVekhOiIFdCjkKNGQ/C9Kw9p5JXYkOvWvlqcxoG6VCmdR5GBFM4asg9pM4Kt0e +g1s51E3J1eWlwIQZ1Lz1Ukzx+nE6XdkUYT9qcsci57jujtPpTqwtwS4fnQ9I2g30b Vej3erjQRiH6OT69rCqJVW8Qo/X9OaH7u472SgK6lAmHma7ZC2Idkp2EBwOM3Nlkf+ pS/+JikrtW9Zw== Date: Sun, 08 Feb 2026 22:47:26 +0000 To: dri-devel@lists.freedesktop.org From: Simon Ser Cc: Daniel Stone , Robert Mader Subject: [PATCH] drm/fourcc: fix plane order for 10/12/16-bit YCbCr formats Message-ID: <20260208224718.57199-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton X-Pm-Message-ID: 7b4eb14ffe53b6e5afaa00110fe15a5c93604847 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The short comments had the correct order, but the long comments had the planes reversed. Fixes: 2271e0a20ef7 ("drm: drm_fourcc: add 10/12/16bit software decoder YCb= Cr formats") Signed-off-by: Simon Ser Reviewed-by: Daniel Stone Cc: Robert Mader --- include/uapi/drm/drm_fourcc.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index ea91aa8afde9..2be461c764f4 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -401,8 +401,8 @@ extern "C" { * implementation can multiply the values by 2^6=3D64. For that reason the= padding * must only contain zeros. * index 0 =3D Y plane, [15:0] z:Y [6:10] little endian - * index 1 =3D Cr plane, [15:0] z:Cr [6:10] little endian - * index 2 =3D Cb plane, [15:0] z:Cb [6:10] little endian + * index 1 =3D Cb plane, [15:0] z:Cb [6:10] little endian + * index 2 =3D Cr plane, [15:0] z:Cr [6:10] little endian */ #define DRM_FORMAT_S010=09fourcc_code('S', '0', '1', '0') /* 2x2 subsample= d Cb (1) and Cr (2) planes 10 bits per channel */ #define DRM_FORMAT_S210=09fourcc_code('S', '2', '1', '0') /* 2x1 subsample= d Cb (1) and Cr (2) planes 10 bits per channel */ @@ -414,8 +414,8 @@ extern "C" { * implementation can multiply the values by 2^4=3D16. For that reason the= padding * must only contain zeros. * index 0 =3D Y plane, [15:0] z:Y [4:12] little endian - * index 1 =3D Cr plane, [15:0] z:Cr [4:12] little endian - * index 2 =3D Cb plane, [15:0] z:Cb [4:12] little endian + * index 1 =3D Cb plane, [15:0] z:Cb [4:12] little endian + * index 2 =3D Cr plane, [15:0] z:Cr [4:12] little endian */ #define DRM_FORMAT_S012=09fourcc_code('S', '0', '1', '2') /* 2x2 subsample= d Cb (1) and Cr (2) planes 12 bits per channel */ #define DRM_FORMAT_S212=09fourcc_code('S', '2', '1', '2') /* 2x1 subsample= d Cb (1) and Cr (2) planes 12 bits per channel */ @@ -424,8 +424,8 @@ extern "C" { /* * 3 plane YCbCr * index 0 =3D Y plane, [15:0] Y little endian - * index 1 =3D Cr plane, [15:0] Cr little endian - * index 2 =3D Cb plane, [15:0] Cb little endian + * index 1 =3D Cb plane, [15:0] Cb little endian + * index 2 =3D Cr plane, [15:0] Cr little endian */ #define DRM_FORMAT_S016=09fourcc_code('S', '0', '1', '6') /* 2x2 subsample= d Cb (1) and Cr (2) planes 16 bits per channel */ #define DRM_FORMAT_S216=09fourcc_code('S', '2', '1', '6') /* 2x1 subsample= d Cb (1) and Cr (2) planes 16 bits per channel */ --=20 2.53.0