[PATCH i-g-t 2/3] lib/igt_fb: With Intel blitter path ignore legacy rules on Xe

Modem, Bhanuprakash bhanuprakash.modem at intel.com
Thu Dec 21 05:00:47 UTC 2023


On 21-12-2023 01:29 am, Juha-Pekka Heikkila wrote:
> If running with Xe device there's no need to care about legacy
> size limitations, just say blitter is ok before checking for
> legacy blitter size limits.
> 
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>

> ---
>   lib/igt_fb.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 683eb176b..06374efa0 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -2513,6 +2513,9 @@ static bool blitter_ok(const struct igt_fb *fb)
>   	     is_gen12_mc_ccs_modifier(fb->modifier))
>   		return false;
>   
> +	if (is_xe_device(fb->fd))
> +		return true;
> +
>   	for (int i = 0; i < fb->num_planes; i++) {
>   		int width = fb->plane_width[i];
>   


More information about the igt-dev mailing list