summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-12-18 16:21:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-12-18 16:22:59 +0000
commitc537cdb08eb7a862b50fab2d66aa40f8efaaf933 (patch)
tree68fa1417093e22a20044c7c3f9766e3090bee9ab
parent4bde75434999568db4868adfcdc9f93fcb7c49c4 (diff)
igt/gem_ctx_thrash/threads: Allow bo resuse
We already allocate enough objects to thrash the ppGTT VMs, so allow us to reuse the batch buffers for some efficiency gains and through the contention more towards the ctx->vm. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_ctx_thrash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c
index a351bb9d..f9f6faa4 100644
--- a/tests/gem_ctx_thrash.c
+++ b/tests/gem_ctx_thrash.c
@@ -251,6 +251,7 @@ threads(void)
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
igt_assert(bufmgr);
+ drm_intel_bufmgr_gem_enable_reuse(bufmgr);
if (ppgtt_mode > 1)
ctx_size = aperture >> 10; /* Assume full-ppgtt of maximum size */