[PATCH i-g-t] i915/gem_ppgtt: Enable libdrm bo reuse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try papering over the icl memleak with a spot of buffer recycling.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux