Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB90C43603 for ; Thu, 19 Dec 2019 14:17:13 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 78D3E24650 for ; Thu, 19 Dec 2019 14:17:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 78D3E24650 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 098B46EB81; Thu, 19 Dec 2019 14:17:13 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6FDA06EB81 for ; Thu, 19 Dec 2019 14:17:12 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2019 06:17:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,332,1571727600"; d="scan'208";a="213019721" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by fmsmga007.fm.intel.com with ESMTP; 19 Dec 2019 06:17:11 -0800 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by irsmsx110.ger.corp.intel.com (163.33.3.25) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Dec 2019 14:17:08 +0000 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.130]) by irsmsx112.ger.corp.intel.com ([169.254.1.125]) with mapi id 14.03.0439.000; Thu, 19 Dec 2019 14:17:09 +0000 From: "Kahola, Mika" To: "intel-gfx@lists.freedesktop.org" , "Deak, Imre" Thread-Topic: [Intel-gfx] [PATCH 11/15] drm/framebuffer: Format modifier for Intel Gen-12 media compression Thread-Index: AQHVtb3uoogXz1yFhk+mWCqoCztIvKfBgoGA Date: Thu, 19 Dec 2019 14:17:07 +0000 Message-ID: <22b98923734456e15a7a2bf25182607c15966abb.camel@intel.com> References: <20191218161105.30638-1-imre.deak@intel.com> <20191218161105.30638-12-imre.deak@intel.com> In-Reply-To: <20191218161105.30638-12-imre.deak@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.237.72.159] Content-ID: MIME-Version: 1.0 Subject: Re: [Intel-gfx] [PATCH 11/15] drm/framebuffer: Format modifier for Intel Gen-12 media compression X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Chery, Nanley G" , "De Marchi, Lucas" , "Pandiyan, Dhinakaran" Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, 2019-12-18 at 18:11 +0200, Imre Deak wrote: > From: Dhinakaran Pandiyan > = > Gen-12 display can decompress surfaces compressed by the media > engine, add > a new modifier as the driver needs to know the surface was compressed > by > the media or render engine. > = > v2: Update code comment describing the color plane order for YUV > semiplanar formats. > = > Cc: Nanley G Chery > Cc: Matt Roper > Cc: Ville Syrj=E4l=E4 > Signed-off-by: Dhinakaran Pandiyan > Signed-off-by: Lucas De Marchi > Signed-off-by: Imre Deak Reviewed-by: Mika Kahola > --- > include/uapi/drm/drm_fourcc.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > = > diff --git a/include/uapi/drm/drm_fourcc.h > b/include/uapi/drm/drm_fourcc.h > index 5ba481f49931..8bc0b31597d8 100644 > --- a/include/uapi/drm/drm_fourcc.h > +++ b/include/uapi/drm/drm_fourcc.h > @@ -421,6 +421,19 @@ extern "C" { > */ > #define I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS fourcc_mod_code(INTEL, > 6) > = > +/* > + * Intel color control surfaces (CCS) for Gen-12 media compression > + * > + * The main surface is Y-tiled and at plane index 0, the CCS is > linear and > + * at index 1. A 64B CCS cache line corresponds to an area of 4x1 > tiles in > + * main surface. In other words, 4 bits in CCS map to a main surface > cache > + * line pair. The main surface pitch is required to be a multiple of > four > + * Y-tile widths. For semi-planar formats like NV12, CCS planes > follow the > + * Y and UV planes i.e., planes 0 and 1 are used for Y and UV > surfaces, > + * planes 2 and 3 for the respective CCS. > + */ > +#define I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS fourcc_mod_code(INTEL, > 7) > + > /* > * Tiled, NV12MT, grouped in 64 (pixels) x 32 (lines) -sized > macroblocks > * _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx