summaryrefslogtreecommitdiff
path: root/tests/i915/i915_module_load.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-12-30 11:02:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-30 14:24:40 +0000
commit1384f8df232ae5232bf2db2de8cbd6f69b25236b (patch)
treec7878fe5ffd6bebb5cfe9ce7e288a353a4f7675a /tests/i915/i915_module_load.c
parent3714a967f69f7c7d6ec32e7b09f64ceb0a11bec1 (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/i915_module_load.c')
-rw-r--r--tests/i915/i915_module_load.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
index 7767eb2b..e4cb0d4d 100644
--- a/tests/i915/i915_module_load.c
+++ b/tests/i915/i915_module_load.c
@@ -20,6 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_debugfs.h"
#include "igt_aux.h"
@@ -148,7 +149,7 @@ static void store_all(int fd)
nengine = 0;
intel_detect_and_clear_missed_interrupts(fd);
- for_each_engine(e, fd) {
+ for_each_ring(e, fd) {
if (!gem_can_store_dword(fd, eb_ring(e)))
continue;
@@ -278,12 +279,12 @@ static void
gem_exec_store(void)
{
int fd;
- const struct intel_execution_engine *e;
+ const struct intel_execution_ring *e;
fd = __drm_open_driver(DRIVER_INTEL);
igt_fork_hang_detector(fd);
- for (e = intel_execution_engines; e->name; e++)
+ for (e = intel_execution_rings; e->name; e++)
store_dword(fd, eb_ring(e));
store_all(fd);