diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-13 12:10:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-13 12:10:08 +0100 |
commit | 21f8204e54c122e4a0f8ca4b59e4b2db8d1ba687 (patch) | |
tree | 74161d94a79906172c648502e300cd5d5a441efc /tests | |
parent | d97a7c4fa1b129f64fdaa6297af1c2ec9c8856c4 (diff) |
i915/gem_exec_schedule: Trim repetitions for preempt-queue
Double the queue length each time, instead of a plain increment, so we
reduce the number of iterations we require by 4.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_exec_schedule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c index 4d70d52f2..488d93511 100644 --- a/tests/i915/gem_exec_schedule.c +++ b/tests/i915/gem_exec_schedule.c @@ -1479,7 +1479,7 @@ static void preempt_queue(int fd, unsigned ring, unsigned int flags) const struct intel_execution_engine2 *e; __for_each_physical_engine(fd, e) { - for (unsigned depth = 0; depth <= MAX_ELSP_QLEN; depth++) + for (unsigned depth = 1; depth <= MAX_ELSP_QLEN; depth *= 2) __preempt_queue(fd, ring, e->flags, depth, flags); } } |