@@ -132,21 +132,24 @@ igt_main
igt_subtest_group {
for (int n = 0; n < 26; n++) {
- uint32_t *crtcs = &data.resources->crtcs[n];
errno = 0;
igt_fixture
igt_skip_on(n >= data.resources->count_crtcs);
igt_subtest_f("single-%c-bo", 'A' + n)
- stress(&data, crtcs, 1, 1, DRM_MODE_CURSOR_BO, 20);
+ stress(&data, data.resources->crtcs,
+ 1, 1, DRM_MODE_CURSOR_BO, 20);
igt_subtest_f("single-%c-move", 'A' + n)
- stress(&data, crtcs, 1, 1, DRM_MODE_CURSOR_MOVE, 20);
+ stress(&data, data.resources->crtcs,
+ 1, 1, DRM_MODE_CURSOR_MOVE, 20);
igt_subtest_f("forked-%c-bo", 'A' + n)
- stress(&data, crtcs, 1, ncpus, DRM_MODE_CURSOR_BO, 20);
+ stress(&data, data.resources->crtcs,
+ 1, ncpus, DRM_MODE_CURSOR_BO, 20);
igt_subtest_f("forked-%c-move", 'A' + n)
- stress(&data, crtcs, 1, ncpus, DRM_MODE_CURSOR_MOVE, 20);
+ stress(&data, data.resources->crtcs,
+ 1, ncpus, DRM_MODE_CURSOR_MOVE, 20);
}
}
Either use a igt_fixture for crtcs or remove it entirely and use the one already in igt_main. CC: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> --- tests/kms_cursor_legacy.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)