[igt-dev] [PATCH i-g-t 4/4] tests/gem_ctx_shared: Fix disjoint_timelines test requirements

John Harrison john.c.harrison at intel.com
Wed Nov 3 18:23:40 UTC 2021


On 11/2/2021 16:30, Ashutosh Dixit wrote:
> Use gem_uses_ppgtt() for create vm and gem_scheduler_enabled() for
> context re-ordering.
>
> Suggested-by: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
Reviewed-by: John Harrison <John.C.Harrison at Intel.com>

> ---
>   tests/i915/gem_ctx_shared.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
> index 7e3a2617b21..2f7ee69b1d3 100644
> --- a/tests/i915/gem_ctx_shared.c
> +++ b/tests/i915/gem_ctx_shared.c
> @@ -159,7 +159,7 @@ static void disjoint_timelines(int i915, const intel_ctx_cfg_t *cfg)
>   	uint32_t plug;
>   	uint64_t ahnd;
>   
> -	igt_require(gem_using_execlists(i915) || gem_using_guc_submission(i915));
> +	igt_require(gem_uses_ppgtt(i915) && gem_scheduler_enabled(i915));
>   
>   	/*
>   	 * Each context, although they share a vm, are expected to be



More information about the igt-dev mailing list