[igt-dev] [PATCH i-g-t 4/5] RFC lib/ioctl_wrappers: GEM_SET_DOMAIN ioctl not supported on xe
Kunal Joshi
kunal1.joshi at intel.com
Fri Jun 9 10:12:04 UTC 2023
xe doesn't support GEM_SET_DOMAIN ioctl
v2: Keep i915 specific check in test only
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
tests/i915/kms_frontbuffer_tracking.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 09bfd3c3..7159cd37 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -1573,7 +1573,8 @@ static void do_flush(const struct test_mode *t)
struct modeset_params *params = pick_params(t);
struct fb_region *target = pick_target(t, params);
- gem_set_domain(drm.fd, target->fb->gem_handle, I915_GEM_DOMAIN_GTT, 0);
+ if (is_i915_device(drm.fd))
+ gem_set_domain(drm.fd, target->fb->gem_handle, I915_GEM_DOMAIN_GTT, 0);
}
#define DONT_ASSERT_CRC (1 << 0)
--
2.34.1
More information about the igt-dev
mailing list