Message ID | 20240506185238.364539-2-juhapekka.heikkila@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Introducing I915_FORMAT_MOD_4_TILED_XE2_CCS Modifier for Xe2 | expand |
> -----Original Message----- > From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> > Sent: Monday, May 6, 2024 2:53 PM > To: intel-xe@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>; Chery, Nanley G <nanley.g.chery@intel.com>; Saarinen, Jani > <jani.saarinen@intel.com>; Graunke, Kenneth W <kenneth.w.graunke@intel.com>; Souza, Jose <jose.souza@intel.com>; Mathew, Alwin > <alwin.mathew@intel.com>; Zhang, Jianxun <jianxun.zhang@intel.com>; Syrjala, Ville <ville.syrjala@linux.intel.com>; Nikula, Jani > <jani.nikula@intel.com> > Subject: [RFC PATCH 1/3] drm/fourcc: define Intel Xe2 related tile4 ccs modifier > > Add Tile4 type ccs modifier to indicate presence of compression on Xe2 > > Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> > --- > include/uapi/drm/drm_fourcc.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > index 84d502e42961..50db2cc89642 100644 > --- a/include/uapi/drm/drm_fourcc.h > +++ b/include/uapi/drm/drm_fourcc.h > @@ -702,6 +702,18 @@ extern "C" { > */ > #define I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC fourcc_mod_code(INTEL, 15) > > +/* > + * Intel Color Control Surfaces (CCS) for graphics ver. 20 render compression. > + * > + * The main surface is Tile 4 and at plane index 0. For semi-planar formats > + * like NV12, the Y and UV planes are Tile 4 and are located at plane indices > + * 0 and 1, respectively. The CCS for all planes are stored outside of the > + * GEM object in a reserved memory area dedicated for the storage of the > + * CCS data for all compressible GEM objects. The main surface pitch is > + * required to be a multiple of four Tile 4 widths. > + */ The pitch requirement is gone on this generation, isn't it? -Nanley > +#define I915_FORMAT_MOD_4_TILED_XE2_CCS fourcc_mod_code(INTEL, 16) > + > /* > * Tiled, NV12MT, grouped in 64 (pixels) x 32 (lines) -sized macroblocks > * > -- > 2.43.2
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 84d502e42961..50db2cc89642 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -702,6 +702,18 @@ extern "C" { */ #define I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC fourcc_mod_code(INTEL, 15) +/* + * Intel Color Control Surfaces (CCS) for graphics ver. 20 render compression. + * + * The main surface is Tile 4 and at plane index 0. For semi-planar formats + * like NV12, the Y and UV planes are Tile 4 and are located at plane indices + * 0 and 1, respectively. The CCS for all planes are stored outside of the + * GEM object in a reserved memory area dedicated for the storage of the + * CCS data for all compressible GEM objects. The main surface pitch is + * required to be a multiple of four Tile 4 widths. + */ +#define I915_FORMAT_MOD_4_TILED_XE2_CCS fourcc_mod_code(INTEL, 16) + /* * Tiled, NV12MT, grouped in 64 (pixels) x 32 (lines) -sized macroblocks *
Add Tile4 type ccs modifier to indicate presence of compression on Xe2 Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> --- include/uapi/drm/drm_fourcc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)