From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F26F6EABE for ; Thu, 15 Apr 2021 19:12:47 +0000 (UTC) Received: by mail-pg1-x52f.google.com with SMTP id 31so2102973pgn.13 for ; Thu, 15 Apr 2021 12:12:47 -0700 (PDT) From: Jason Ekstrand Date: Thu, 15 Apr 2021 14:11:07 -0500 Message-Id: <20210415191145.2137858-37-jason@jlekstrand.net> In-Reply-To: <20210415191145.2137858-1-jason@jlekstrand.net> References: <20210415191145.2137858-1-jason@jlekstrand.net> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 36/74] tests/i915/gem_ctx_exec: Convert to intel_ctx_t List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: --- tests/i915/gem_ctx_exec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c index 95b286b2..54374b7b 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -267,7 +267,7 @@ static void nohangcheck_hostile(int i915) const struct intel_execution_engine2 *e; igt_hang_t hang; int fence = -1; - uint32_t ctx; + const intel_ctx_t *ctx; int err = 0; int dir; @@ -281,12 +281,12 @@ static void nohangcheck_hostile(int i915) dir = igt_params_open(i915); igt_require(dir != -1); - ctx = gem_context_create(i915); - hang = igt_allow_hang(i915, ctx, 0); + ctx = intel_ctx_create_all_physical(i915); + hang = igt_allow_hang(i915, ctx->id, 0); igt_require(__enable_hangcheck(dir, false)); - ____for_each_physical_engine(i915, ctx, e) { + for_each_ctx_engine(i915, ctx, e) { igt_spin_t *spin; int new; @@ -294,7 +294,7 @@ static void nohangcheck_hostile(int i915) gem_engine_property_printf(i915, e->name, "preempt_timeout_ms", "%d", 50); - spin = __igt_spin_new(i915, ctx, + spin = __igt_spin_new(i915, .ctx = ctx, .engine = e->flags, .flags = (IGT_SPIN_NO_PREEMPTION | IGT_SPIN_FENCE_OUT)); @@ -315,7 +315,7 @@ static void nohangcheck_hostile(int i915) fence = tmp; } } - gem_context_destroy(i915, ctx); + intel_ctx_destroy(i915, ctx); igt_assert(fence != -1); if (sync_fence_wait(fence, MSEC_PER_SEC)) { /* 640ms preempt-timeout */ -- 2.31.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev