[PATCH i-g-t 3/3] tests/intel/xe_pat: assert flat CSS support for xe2

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Thu Feb 1 09:13:44 UTC 2024


On Wed, Jan 31, 2024 at 11:43:05AM +0000, Matthew Auld wrote:
> Xe2+ should support flat CCS compression, and here we are using
> compressed PAT index modes. Assert the platform indeed has flat CCS
> here, otherwise something is likely wrong.
> 
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Akshata Jahagirdar <akshata.jahagirdar at intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
>  tests/intel/xe_pat.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/intel/xe_pat.c b/tests/intel/xe_pat.c
> index 40256bada..3d7d7400c 100644
> --- a/tests/intel/xe_pat.c
> +++ b/tests/intel/xe_pat.c
> @@ -1049,6 +1049,7 @@ igt_main_args("V", NULL, help_str, opt_handler, NULL)
>  
>  	igt_subtest_with_dynamic("pat-index-xe2") {
>  		igt_require(intel_get_device_info(dev_id)->graphics_ver >= 20);
> +		igt_assert(HAS_FLATCCS(dev_id));
>  		subtest_pat_index_modes_with_regions(fd, xe2_pat_index_modes,
>  						     ARRAY_SIZE(xe2_pat_index_modes));
>  	}
> -- 
> 2.43.0
> 

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew


More information about the igt-dev mailing list