[igt-dev] [i-g-t 02/18] lib/igt_fb: Intel bops & ibb is mandatory for XE
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Jun 19 11:58:42 UTC 2023
As XE supports rendercopy only, make sure bops & ibb is created
to use the rendercopy function.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
lib/igt_fb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 579f25597..0e23e23a9 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2847,7 +2847,8 @@ static void setup_linear_mapping(struct fb_blit_upload *blit)
struct igt_fb *fb = blit->fb;
struct fb_blit_linear *linear = &blit->linear;
- if (!igt_vc4_is_tiled(fb->modifier) && use_enginecopy(fb)) {
+ if (is_xe_device(fd) ||
+ (!igt_vc4_is_tiled(fb->modifier) && use_enginecopy(fb))) {
blit->bops = buf_ops_create(fd);
blit->ibb = intel_bb_create(fd, 4096);
}
--
2.40.0
More information about the igt-dev
mailing list