diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-13 16:41:07 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-16 10:17:40 +0000 |
commit | cb53c67a8f8f88814740656f6b100e480f472227 (patch) | |
tree | 595059714096567f1b9c6a6ebb5ed7d6e40694d2 /tests/i915/gem_exec_latency.c | |
parent | 9822051876c0eddf99b4c73783c794b98336af06 (diff) |
i915: Increase engine[] to fit the entire RING_MASK
As a stepping stone, increase the assumed 16 engines is enough for
everyone, to cover the current RING_MASK, the maximum number of engines
that can currently be selected during execbuf.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Diffstat (limited to 'tests/i915/gem_exec_latency.c')
-rw-r--r-- | tests/i915/gem_exec_latency.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c index 568d727f..5203bd9b 100644 --- a/tests/i915/gem_exec_latency.c +++ b/tests/i915/gem_exec_latency.c @@ -463,8 +463,8 @@ rthog_latency_on_ring(int fd, unsigned int engine, const char *name, unsigned in .flags = IGT_SPIN_POLL_RUN | IGT_SPIN_FAST, }; struct rt_pkt *results; - unsigned int engines[16]; - const char *names[16]; + unsigned int engines[I915_EXEC_RING_MASK + 1]; + const char *names[ARRAY_SIZE(engines)]; unsigned int nengine; int ret; |