diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 11:02:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 14:24:40 +0000 |
commit | 1384f8df232ae5232bf2db2de8cbd6f69b25236b (patch) | |
tree | c7878fe5ffd6bebb5cfe9ce7e288a353a4f7675a /tests/i915/gem_eio.c | |
parent | 3714a967f69f7c7d6ec32e7b09f64ceb0a11bec1 (diff) |
i915: Rename legacy for_each_engine to for_each_ring
Improve the differentiation between the legacy ring selector ABI and the
more recent engine selection API.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Diffstat (limited to 'tests/i915/gem_eio.c')
-rw-r--r-- | tests/i915/gem_eio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index ae53227c..19c623c2 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -446,7 +446,7 @@ static void test_inflight(int fd, unsigned int wait) max = min(max - 1, ARRAY_SIZE(fence)); igt_debug("Using %d inflight batches\n", max); - for_each_engine(e, parent_fd) { + for_each_ring(e, parent_fd) { const uint32_t bbe = MI_BATCH_BUFFER_END; struct drm_i915_gem_exec_object2 obj[2]; struct drm_i915_gem_execbuffer2 execbuf; @@ -575,7 +575,7 @@ static void test_inflight_contexts(int fd, unsigned int wait) igt_require(gem_has_exec_fence(fd)); gem_require_contexts(fd); - for_each_engine(e, parent_fd) { + for_each_ring(e, parent_fd) { const uint32_t bbe = MI_BATCH_BUFFER_END; struct drm_i915_gem_exec_object2 obj[2]; struct drm_i915_gem_execbuffer2 execbuf; @@ -718,7 +718,7 @@ static void test_inflight_internal(int fd, unsigned int wait) memset(&execbuf, 0, sizeof(execbuf)); execbuf.buffers_ptr = to_user_pointer(obj); execbuf.buffer_count = 2; - for_each_engine(e, fd) { + for_each_ring(e, fd) { execbuf.flags = eb_ring(e) | I915_EXEC_FENCE_OUT; gem_execbuf_wr(fd, &execbuf); @@ -829,7 +829,7 @@ static void test_reset_stress(int fd, unsigned int flags) { uint32_t ctx0 = context_create_safe(fd); - for_each_engine(e, fd) + for_each_ring(e, fd) reset_stress(fd, ctx0, e->name, eb_ring(e), flags); gem_context_destroy(fd, ctx0); |