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_shrink.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_shrink.c')
-rw-r--r-- | tests/i915/gem_shrink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c index 5715ef68..dba62c8f 100644 --- a/tests/i915/gem_shrink.c +++ b/tests/i915/gem_shrink.c @@ -37,7 +37,7 @@ #define MADV_FREE 8 #endif -static unsigned int engines[16], nengine; +static unsigned int engines[I915_EXEC_RING_MASK + 1], nengine; static void get_pages(int fd, uint64_t alloc) { |