[PATCH i-g-t 4/7] lib/intel_bufops: Drop tilings restrictions

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Thu Apr 25 13:08:23 UTC 2024


On 25.4.2024 13.47, Zbigniew Kempczyński wrote:
> Different platforms supports different tilings so instead of asserting
> on buffer creation path move responsibility of passing valid data
> to the test. It can use intel_cmds_info to iterate over supported
> tilings so this is better extendible and requires fewer changes.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
>   lib/intel_bufops.c | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
> index 007ccdb953..b96275e485 100644
> --- a/lib/intel_bufops.c
> +++ b/lib/intel_bufops.c
> @@ -898,9 +898,6 @@ static void __intel_buf_init(struct buf_ops *bops,
>   
>   	if (compression) {
>   		igt_require(bops->intel_gen >= 9);
> -		igt_assert(req_tiling == I915_TILING_Y ||
> -			   req_tiling == I915_TILING_Yf ||
> -			   req_tiling == I915_TILING_4);

I'm wondering if it would make sense to flip this assert around instead 
of removing it? I mean would check here will not arrive linear and 
x-tile? I didn't check but I assume this compression flag will not be 
enabled for xe2?

/Juha-Pekka

>   		/*
>   		 * On GEN12+ we align the main surface to 4 * 4 main surface
>   		 * tiles, which is 64kB. These 16 tiles are mapped by 4 AUX



More information about the igt-dev mailing list