[igt-dev] [PATCH i-g-t 4/5] RFC lib/ioctl_wrappers: GEM_SET_DOMAIN ioctl not supported on xe
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Mon Jun 12 05:38:08 UTC 2023
On Fri-09-06-2023 03:42 pm, Kunal Joshi wrote:
> 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);
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> }
>
> #define DONT_ASSERT_CRC (1 << 0)
More information about the igt-dev
mailing list