diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-08 17:10:18 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-16 14:51:31 -0500 |
commit | 038d0ef9c33a40aaa411e090407401e63dd752ea (patch) | |
tree | 8405901a1e964d7240c7adaed8cb5789f0f6f006 /tests/i915/gem_exec_balancer.c | |
parent | dba068b3f63ab3044ec8043977ddc76fb1bf2a4f (diff) |
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 <jason@jlekstrand.net>
Cc: Lakshminarayana Vudum <lakshminarayana.vudum@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/i915/gem_exec_balancer.c')
-rw-r--r-- | tests/i915/gem_exec_balancer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |