[PATCH i-g-t] lib/igt_fb: simulate i915 linear fb behavior on xe

Borah, Chaitanya Kumar chaitanya.kumar.borah at intel.com
Tue Apr 1 04:43:56 UTC 2025


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Thursday, March 27, 2025 9:43 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> Subject: [PATCH i-g-t] lib/igt_fb: simulate i915 linear fb behavior on xe
> 
> even if all framebuffer as marked as slow on xe let's still use cpu for linear
> framebuffers

LGTM.

Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah at intel.com>



> 
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> ---
>  lib/igt_fb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c index d62a94e51..9fc1bfc65 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -2602,7 +2602,7 @@ static bool use_blitter(const struct igt_fb *fb)
>  	       fb->modifier == I915_FORMAT_MOD_Y_TILED ||
>  	       fb->modifier == I915_FORMAT_MOD_Yf_TILED ||
>  	       (is_i915_device(fb->fd) && !gem_has_mappable_ggtt(fb->fd)) ||
> -	       is_xe_device(fb->fd);
> +	       (is_xe_device(fb->fd) && xe_has_vram(fb->fd));
>  }
> 
>  static void init_buf_ccs(struct intel_buf *buf, int ccs_idx,
> --
> 2.45.2



More information about the igt-dev mailing list