diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 17:46:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 17:46:00 +0000 |
commit | a910af89ac723535da27189035c01156c2cdbc14 (patch) | |
tree | 4d3f66c6f0125e8a9075b24de3539bd59b471ac4 /tests/i915/gem_shrink.c | |
parent | e5cd5480cb75b6b8116a8159ca2c4f06f784a13a (diff) |
i915/gem_shrink: Replace legacy ring selection ABI
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_shrink.c')
-rw-r--r-- | tests/i915/gem_shrink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c index c14c89ae..2269da49 100644 --- a/tests/i915/gem_shrink.c +++ b/tests/i915/gem_shrink.c @@ -28,7 +28,6 @@ */ #include "i915/gem.h" -#include "i915/gem_ring.h" #include "igt.h" #include "igt_gt.h" #include "igt_debugfs.h" @@ -429,6 +428,7 @@ igt_main igt_fixture { const int ncpus = sysconf(_SC_NPROCESSORS_ONLN); uint64_t mem_size = intel_get_total_ram_mb(); + const struct intel_execution_engine2 *e; int fd; fd = drm_open_driver(DRIVER_INTEL); @@ -451,8 +451,8 @@ igt_main CHECK_SWAP | CHECK_RAM); nengine = 0; - for_each_ring(e, fd) - engines[nengine++] = eb_ring(e); + __for_each_physical_engine(fd, e) + engines[nengine++] = e->flags; igt_require(nengine); close(fd); |