[PATCH i-g-t 32/38] tests/gem_ppgtt: Adopt test to use intel_bb with allocator
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Tue Feb 23 06:39:36 UTC 2021
Tests work in multiprocess environment so we must turn on/off
thread in parent process which is responsible for allocations.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_ppgtt.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
index 5f8b34224..678a63498 100644
--- a/tests/i915/gem_ppgtt.c
+++ b/tests/i915/gem_ppgtt.c
@@ -283,10 +283,13 @@ igt_main
rcs = calloc(sizeof(*rcs), nchild);
igt_assert(rcs);
+ intel_allocator_multiprocess_start();
+
fork_bcs_copy(30, 0x4000, bcs, 1);
fork_rcs_copy(30, 0x8000 / nchild, rcs, nchild, 0);
igt_waitchildren();
+ intel_allocator_multiprocess_stop();
surfaces_check(bcs, 1, 0x4000);
surfaces_check(rcs, nchild, 0x8000 / nchild);
@@ -310,10 +313,13 @@ igt_main
rcs = calloc(sizeof(*rcs), nchild);
igt_assert(rcs);
+ intel_allocator_multiprocess_start();
+
fork_rcs_copy(30, 0x8000 / nchild, rcs, nchild, CREATE_CONTEXT);
fork_bcs_copy(30, 0x4000, bcs, 1);
igt_waitchildren();
+ intel_allocator_multiprocess_stop();
surfaces_check(bcs, 1, 0x4000);
surfaces_check(rcs, nchild, 0x8000 / nchild);
--
2.26.0
More information about the Intel-gfx-trybot
mailing list