[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: copy engines for the context
Ramalingam C
ramalingam.c at intel.com
Mon May 3 12:46:43 UTC 2021
For the subtest pi of gem_exec_capture, we are copying the engines for
the context.
Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
Suggested-by: Chris Wilson <chris.p.wilson at intel.com>
---
tests/i915/gem_exec_capture.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
index 3da78d6324ef..76fce4a8c4a4 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -536,13 +536,14 @@ static void prioinv(int fd, int dir, unsigned ring, const char *name)
igt_assert(pipe(link) == 0);
igt_fork(child, 1) {
- fd = gem_reopen_driver(fd);
+ int i915 = gem_reopen_driver(fd);
+ gem_context_copy_engines(fd, 0, i915, 0);
igt_debug("Submitting large capture [%ld x %dMiB objects]\n",
count, (int)(size >> 20));
- free(__captureN(fd, dir, ring, size, count, ASYNC));
- write(link[1], &fd, sizeof(fd)); /* wake the parent up */
- igt_force_gpu_reset(fd);
- write(link[1], &fd, sizeof(fd)); /* wake the parent up */
+ free(__captureN(i915, dir, ring, size, count, ASYNC));
+ write(link[1], &i915, sizeof(i915)); /* wake the parent up */
+ igt_force_gpu_reset(i915);
+ write(link[1], &i915, sizeof(i915)); /* wake the parent up */
}
read(link[0], &dummy, sizeof(dummy));
igt_require_f(poll(&(struct pollfd){link[0], POLLIN}, 1, 500) == 0,
--
2.20.1
More information about the igt-dev
mailing list