diff options
Diffstat (limited to 'tests/i915/gem_exec_capture.c')
-rw-r--r-- | tests/i915/gem_exec_capture.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c index c2639082..a25f529b 100644 --- a/tests/i915/gem_exec_capture.c +++ b/tests/i915/gem_exec_capture.c @@ -721,6 +721,15 @@ static void prioinv(int fd, int dir, const intel_ctx_t *ctx, ctx2 = intel_ctx_create_all_physical(fd); igt_assert(ctx2); + if (needs_recoverable_ctx(fd)) { + struct drm_i915_gem_context_param param = { + .ctx_id = ctx2->id, + .param = I915_CONTEXT_PARAM_RECOVERABLE, + .value = 0, + }; + + gem_context_set_param(fd, ¶m); + } intel_allocator_init(); /* Reopen the allocator in the new process. */ |