[igt-dev] [PATCH i-g-t] i915/gem_ppgtt: Enable libdrm bo reuse
Chris Wilson
chris at chris-wilson.co.uk
Tue Apr 9 20:53:16 UTC 2019
Try papering over the icl memleak with a spot of buffer recycling.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_ppgtt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
index ae9869c2c..4bff5cf98 100644
--- a/tests/i915/gem_ppgtt.c
+++ b/tests/i915/gem_ppgtt.c
@@ -107,6 +107,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);
@@ -179,6 +180,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);
}
--
2.20.1
More information about the igt-dev
mailing list