[PATCH i-g-t] lib/igt_fb: on Xe device don't apply legacy blitter rules

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed Feb 28 14:39:04 UTC 2024


On Xe device legacy blitter size rules don't need to be applied

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 lib/igt_fb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 65e0638c2..0ac2a76b0 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];
 
-- 
2.25.1



More information about the igt-dev mailing list