Return-Path: Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by gabe.freedesktop.org (Postfix) with ESMTPS id AF1156EC80 for ; Fri, 23 Apr 2021 21:50:26 +0000 (UTC) Received: by mail-pj1-x1035.google.com with SMTP id cu16so21781445pjb.4 for ; Fri, 23 Apr 2021 14:50:26 -0700 (PDT) From: Jason Ekstrand Date: Fri, 23 Apr 2021 16:48:16 -0500 Message-Id: <20210423214853.876911-53-jason@jlekstrand.net> In-Reply-To: <20210423214853.876911-1-jason@jlekstrand.net> References: <20210423214853.876911-1-jason@jlekstrand.net> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 52/89] tests/i915/gem_exec_params: 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: Signed-off-by: Jason Ekstrand --- tests/i915/gem_exec_params.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_params.c b/tests/i915/gem_exec_params.c index 6840cf40..05052882 100644 --- a/tests/i915/gem_exec_params.c +++ b/tests/i915/gem_exec_params.c @@ -298,8 +298,10 @@ static void test_larger_than_life_batch(int fd) { const struct intel_execution_engine2 *e; uint64_t size = 1ULL << 32; /* batch_len is __u32 as per the ABI */ + const intel_ctx_t *ctx = intel_ctx_create_all_physical(fd); struct drm_i915_gem_exec_object2 exec = { .handle = batch_create_size(fd, size), + .rsvd1 = ctx->id, }; struct drm_i915_gem_execbuffer2 execbuf = { .buffers_ptr = to_user_pointer(&exec), @@ -315,7 +317,7 @@ static void test_larger_than_life_batch(int fd) igt_require(size < gem_aperture_size(fd)); intel_require_memory(2, size, CHECK_RAM); /* batch + shadow */ - __for_each_physical_engine(fd, e) { + for_each_ctx_engine(fd, ctx, e) { /* Keep the batch_len implicit [0] */ execbuf.flags = e->flags; -- 2.31.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev