diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-03-30 09:42:24 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-06-10 11:14:51 -0500 |
commit | ad5a60896fef0ae9bec36533635f704ad3826952 (patch) | |
tree | ab362b3ab38ad8caef58156524b02733b8d7dc03 /tests/i915/gem_ctx_shared.c | |
parent | 156d88529d0b8a23e61e2ea6d84b88bb4bf265d3 (diff) |
lib/dummyload: Rename igt_spin_factory::ctx to ctx_id
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_shared.c')
-rw-r--r-- | tests/i915/gem_ctx_shared.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c index c7e957c4..aedf389c 100644 --- a/tests/i915/gem_ctx_shared.c +++ b/tests/i915/gem_ctx_shared.c @@ -125,8 +125,8 @@ static void disjoint_timelines(int i915) child = gem_context_clone(i915, 0, I915_CONTEXT_CLONE_VM, 0); plug = igt_cork_plug(&cork, i915); - spin[0] = __igt_spin_new(i915, .ctx = 0, .dependency = plug); - spin[1] = __igt_spin_new(i915, .ctx = child); + spin[0] = __igt_spin_new(i915, .ctx_id = 0, .dependency = plug); + spin[1] = __igt_spin_new(i915, .ctx_id = child); /* Wait for the second spinner, will hang if stuck behind the first */ igt_spin_end(spin[1]); @@ -389,7 +389,7 @@ static void exec_single_timeline(int i915, unsigned int engine) continue; if (spin == NULL) { - spin = __igt_spin_new(i915, .ctx = ctx, .engine = e->flags); + spin = __igt_spin_new(i915, .ctx_id = ctx, .engine = e->flags); } else { struct drm_i915_gem_execbuffer2 execbuf = { .buffers_ptr = spin->execbuf.buffers_ptr, @@ -417,7 +417,7 @@ static void exec_single_timeline(int i915, unsigned int engine) continue; if (spin == NULL) { - spin = __igt_spin_new(i915, .ctx = ctx, .engine = e->flags); + spin = __igt_spin_new(i915, .ctx_id = ctx, .engine = e->flags); } else { struct drm_i915_gem_execbuffer2 execbuf = { .buffers_ptr = spin->execbuf.buffers_ptr, @@ -511,11 +511,11 @@ static void unplug_show_queue(int i915, struct igt_cork *c, unsigned int engine) for (int n = 0; n < ARRAY_SIZE(spin); n++) { const struct igt_spin_factory opts = { - .ctx = create_highest_priority(i915), + .ctx_id = create_highest_priority(i915), .engine = engine, }; spin[n] = __igt_spin_factory(i915, &opts); - gem_context_destroy(i915, opts.ctx); + gem_context_destroy(i915, opts.ctx_id); } igt_cork_unplug(c); /* batches will now be queued on the engine */ @@ -593,11 +593,11 @@ static void independent(int i915, for (int n = 0; n < ARRAY_SIZE(spin); n++) { const struct igt_spin_factory opts = { - .ctx = create_highest_priority(i915), + .ctx_id = create_highest_priority(i915), .engine = e->flags, }; spin[n] = __igt_spin_factory(i915, &opts); - gem_context_destroy(i915, opts.ctx); + gem_context_destroy(i915, opts.ctx_id); } fence = igt_cork_plug(&cork, i915); |