diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-04-09 21:51:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-03 13:52:05 +0100 |
commit | 0c37c9d8ef7b392c2efb755c145f52feaa5fe5c2 (patch) | |
tree | a9e51977fc2a2122dca21c85eb24bdd9e2954dd6 | |
parent | 62e1c9db0f683557ccf8598bee983a2ed0e6bf9d (diff) |
i915/gem_ppgtt: Enable libdrm bo reuse
Try papering over the icl memleak with a spot of buffer recycling.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/i915/gem_ppgtt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c index 8c02e4af..7a8fe1ac 100644 --- a/tests/i915/gem_ppgtt.c +++ b/tests/i915/gem_ppgtt.c @@ -108,6 +108,7 @@ static void fork_rcs_copy(int timeout, uint32_t final, bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); igt_assert(bufmgr); + drm_intel_bufmgr_gem_enable_reuse(bufmgr); dst[child] = create_bo(bufmgr, ~0); @@ -180,6 +181,7 @@ static void fork_bcs_copy(int timeout, uint32_t final, bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); igt_assert(bufmgr); + drm_intel_bufmgr_gem_enable_reuse(bufmgr); dst[child] = create_bo(bufmgr, ~0); } |