[Intel-gfx] [PATCH i-g-t] i915/gem_spin_batch: Add test to resend spinner

Chris Wilson chris at chris-wilson.co.uk
Tue Apr 16 15:11:34 UTC 2019


Quoting Mika Kuoppala (2019-04-16 16:01:58)
> Add subtests to resend the same spinner to same context
> and to other context.
> 
> v2: other engines (Chris)
> 
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

> +               igt_subtest_f("resubmit-%s", e->name)
> +                       spin_resubmit(fd, e->exec_id, 0);
> +
> +               igt_subtest_f("resubmit-new-%s", e->name)
> +                       spin_resubmit(fd, e->exec_id, RESUBMIT_NEW_CTX);
> +
> +               igt_subtest_f("resubmit-all-%s", e->name)
> +                       spin_resubmit(fd, e->exec_id, RESUBMIT_ALL_ENGINES);
> +
> +               igt_subtest_f("resubmit-new-all-%s", e->name)
> +                       spin_resubmit(fd, e->exec_id,
> +                                     RESUBMIT_NEW_CTX |
> +                                     RESUBMIT_ALL_ENGINES);

You are getting close to wanting a loop here :)
-Chris


More information about the Intel-gfx mailing list