From 038d0ef9c33a40aaa411e090407401e63dd752ea Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 8 Jul 2021 17:10:18 -0500 Subject: i915: Improve the precision of command parser checks The previous gem_has_cmdparser helper took an engine and did nothing with it. We delete the engine parameter and use the general helper for the ALL_ENGINES cases. For cases where we really do care about something more precise, we add a version which takes an intel_ctx_cfg_t and an engine specifier and is able to say whether or not that particular engine has the command parser enabled. Signed-off-by: Jason Ekstrand Cc: Lakshminarayana Vudum Acked-by: Daniel Vetter --- tests/i915/gem_exec_balancer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/i915/gem_exec_balancer.c') diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index 070f392b..2f98950b 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -2257,7 +2257,7 @@ static void hangme(int i915) flags = IGT_SPIN_FENCE_IN | IGT_SPIN_FENCE_OUT | IGT_SPIN_NO_PREEMPTION; - if (!gem_has_cmdparser(i915, ALL_ENGINES)) + if (!gem_engine_has_cmdparser(i915, &ctx->cfg, 0)) flags |= IGT_SPIN_INVALID_CS; for (int j = 0; j < ARRAY_SIZE(c->spin); j++) { c->spin[j] = __igt_spin_new(i915, .ctx = ctx, -- cgit v1.2.3