[igt-dev] [PATCH i-g-t] lib/igt_fb: Allow XY_FAST_COPY_BLT on DG2
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Sat Jun 11 20:38:45 UTC 2022
From: Imre Deak <imre.deak at intel.com>
Allow XY_FAST_COPY_BLT on DG2. This fixes x-tiled blits on DG2.
Signed-off-by: Imre Deak <imre.deak at intel.com>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5450
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5409
---
lib/igt_fb.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index fa31c43c..1b9131f2 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2430,7 +2430,8 @@ struct fb_blit_upload {
static bool fast_blit_ok(const struct igt_fb *fb)
{
- int ver = intel_display_ver(intel_get_drm_devid(fb->fd));
+ int dev_id = intel_get_drm_devid(fb->fd);
+ int ver = intel_display_ver(dev_id);
if (ver < 9)
return false;
@@ -2438,6 +2439,9 @@ static bool fast_blit_ok(const struct igt_fb *fb)
if (ver < 12)
return true;
+ if (ver >= 13 && !IS_ALDERLAKE_P(dev_id))
+ return true;
+
return fb->modifier != I915_FORMAT_MOD_X_TILED;
}
--
2.25.1
More information about the igt-dev
mailing list