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 2DA54E7E0C0 for ; Mon, 9 Feb 2026 10:26:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8386810E3C0; Mon, 9 Feb 2026 10:26:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=robert.mader@collabora.com header.b="d5DsauVD"; dkim-atps=neutral Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4818110E3C0 for ; Mon, 9 Feb 2026 10:26:40 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1770632797; cv=none; d=zohomail.com; s=zohoarc; b=neQq5w3AnZ64MfWEVur+/+3rhJcTuoRJ5x41uDSsoFvPH9W+/neaPVNDSzjpyslmAg0B6da3Iz8GnL6gt5NCitA3EvTuSsTNPt97biNx312IkNeVctPoHZfE2uJ4AkMUhaaaxM1W3z17YaXOfhrbACvAjcKoPhB5lvjkHCaWpuQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770632797; h=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; bh=02x/gdLJRHUwH7t9cIF1l9xm1RoF2vSTUxxVE4M4YRo=; b=HI/AqjLYhWa0zWbLnxFHk7PCwTGbyeLAlCItmWQ+VnvfkJw0UVt8kbWKNK49mRqa1X8EPPErcLroZHew5kBcXPOhE/we9zHY88jPqsIaOjzaByfmsn5+MVZ0CPq85XikvO8u6v1E53N2SLdD8+wY9GbNz074ov7+z2FRJftCYq4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=robert.mader@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1770632797; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=02x/gdLJRHUwH7t9cIF1l9xm1RoF2vSTUxxVE4M4YRo=; b=d5DsauVDqiURPEkq1w+1gF3Fxc0SBAf9xoSM1AQunifOHtT1UeaPkoWYy7T8/KRr zY3s9G6+tjE4uj0KnpOkRn0a2tmL4KqzLXwfUR9Gb7kq9b2CyyNbGaboI2eSGUJAh2l Zua+DFmG03OYPWTSwJ8WILUmd6upVLl9zS10NYmg= Received: by mx.zohomail.com with SMTPS id 1770632794764537.317878633785; Mon, 9 Feb 2026 02:26:34 -0800 (PST) Message-ID: <87ce7c1f-99b0-4bbd-9b65-6ef541c60ab3@collabora.com> Date: Mon, 9 Feb 2026 11:26:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/fourcc: fix plane order for 10/12/16-bit YCbCr formats To: Simon Ser , dri-devel@lists.freedesktop.org Cc: Daniel Stone References: <20260208224718.57199-1-contact@emersion.fr> Content-Language: en-US, de-DE From: Robert Mader In-Reply-To: <20260208224718.57199-1-contact@emersion.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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" Ouch, god catch, thanks! I *think* I copy-pasted from DRM_FORMAT_Q401 instead of DRM_FORMAT_Q410 by mistake. Anyway, Reviewed-by: Robert Mader On 08.02.26 23:47, Simon Ser wrote: > 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 YCbCr 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=64. For that reason the padding > * must only contain zeros. > * index 0 = Y plane, [15:0] z:Y [6:10] little endian > - * index 1 = Cr plane, [15:0] z:Cr [6:10] little endian > - * index 2 = Cb plane, [15:0] z:Cb [6:10] little endian > + * index 1 = Cb plane, [15:0] z:Cb [6:10] little endian > + * index 2 = Cr plane, [15:0] z:Cr [6:10] little endian > */ > #define DRM_FORMAT_S010 fourcc_code('S', '0', '1', '0') /* 2x2 subsampled Cb (1) and Cr (2) planes 10 bits per channel */ > #define DRM_FORMAT_S210 fourcc_code('S', '2', '1', '0') /* 2x1 subsampled Cb (1) and Cr (2) planes 10 bits per channel */ > @@ -414,8 +414,8 @@ extern "C" { > * implementation can multiply the values by 2^4=16. For that reason the padding > * must only contain zeros. > * index 0 = Y plane, [15:0] z:Y [4:12] little endian > - * index 1 = Cr plane, [15:0] z:Cr [4:12] little endian > - * index 2 = Cb plane, [15:0] z:Cb [4:12] little endian > + * index 1 = Cb plane, [15:0] z:Cb [4:12] little endian > + * index 2 = Cr plane, [15:0] z:Cr [4:12] little endian > */ > #define DRM_FORMAT_S012 fourcc_code('S', '0', '1', '2') /* 2x2 subsampled Cb (1) and Cr (2) planes 12 bits per channel */ > #define DRM_FORMAT_S212 fourcc_code('S', '2', '1', '2') /* 2x1 subsampled Cb (1) and Cr (2) planes 12 bits per channel */ > @@ -424,8 +424,8 @@ extern "C" { > /* > * 3 plane YCbCr > * index 0 = Y plane, [15:0] Y little endian > - * index 1 = Cr plane, [15:0] Cr little endian > - * index 2 = Cb plane, [15:0] Cb little endian > + * index 1 = Cb plane, [15:0] Cb little endian > + * index 2 = Cr plane, [15:0] Cr little endian > */ > #define DRM_FORMAT_S016 fourcc_code('S', '0', '1', '6') /* 2x2 subsampled Cb (1) and Cr (2) planes 16 bits per channel */ > #define DRM_FORMAT_S216 fourcc_code('S', '2', '1', '6') /* 2x1 subsampled Cb (1) and Cr (2) planes 16 bits per channel */ -- Robert Mader Consultant Software Developer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718