summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_schedule.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2021-01-17 21:26:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-17 21:32:57 +0000
commitace82fcd5f3623f8dde7c220a825873dc53dfae4 (patch)
tree79d7e87849043b44444a8dafb2d9fc72aa1b5ba8 /tests/i915/gem_exec_schedule.c
parentc5cf0734c4f6c1fa17a6a15b5aa721c3a0b8c494 (diff)
i915/gem_exec_schedule: Tighten estimate for nreq
Each bundle is 3 requests, so trim the workload estimate accordingly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_exec_schedule.c')
-rw-r--r--tests/i915/gem_exec_schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 800e2725..9585059d 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -1808,7 +1808,7 @@ static void deep(int fd, unsigned ring)
ctx[n] = gem_context_clone_with_engines(fd, 0);
}
- nreq = gem_submission_measure(fd, ring) / (4 * XS) * MAX_CONTEXTS;
+ nreq = gem_submission_measure(fd, ring) / (3 * XS) * MAX_CONTEXTS;
if (nreq > max_req)
nreq = max_req;
igt_info("Using %d requests (prio range %d)\n", nreq, max_req);