[igt-dev] [PATCH i-g-t 3/4] tests/i915/kms_ccs: enable mtl aux ccs tests

Kahola, Mika mika.kahola at intel.com
Mon May 22 12:54:32 UTC 2023


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Juha-Pekka Heikkila
> Sent: Tuesday, May 16, 2023 6:43 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t 3/4] tests/i915/kms_ccs: enable mtl aux ccs tests
> 
> Added
> I915_FORMAT_MOD_4_TILED_MTL_RC_CCS
> I915_FORMAT_MOD_4_TILED_MTL_MC_CCS
> I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC
> for testing.
> 

Reviewed-by: Mika Kahola <mika.kahola at intel.com>

> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> ---
>  tests/i915/kms_ccs.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/i915/kms_ccs.c b/tests/i915/kms_ccs.c index 1b3462ea..abe464b4 100644
> --- a/tests/i915/kms_ccs.c
> +++ b/tests/i915/kms_ccs.c
> @@ -101,6 +101,9 @@ static const struct {
>  	{I915_FORMAT_MOD_4_TILED_DG2_RC_CCS, "4_tiled_dg2_rc_ccs"},
>  	{I915_FORMAT_MOD_4_TILED_DG2_MC_CCS, "4_tiled_dg2_mc_ccs"},
>  	{I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC, "4_tiled_dg2_rc_ccs_cc"},
> +	{I915_FORMAT_MOD_4_TILED_MTL_RC_CCS, "4_tiled_mtl_rc_ccs"},
> +	{I915_FORMAT_MOD_4_TILED_MTL_MC_CCS, "4_tiled_mtl_mc_ccs"},
> +	{I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC, "4_tiled_mtl_rc_ccs_cc"},
>  };
> 
>  static bool check_ccs_planes;
> @@ -161,7 +164,8 @@ create_fb_prepare_add(int drm_fd, int width, int height,  static bool is_ccs_cc_modifier(uint64_t
> modifier)  {
>  	return modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ||
> -		modifier == I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC;
> +	       modifier == I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC ||
> +	       modifier == I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC;
>  }
> 
>  /*
> --
> 2.25.1



More information about the igt-dev mailing list