tests/kms_cursor_legacy: Fix igt_fixture.
PATCH 1/1 tests/kms_cursor_legacy: Fix igt_fixture.
Either use a igt_fixture for crtcs or remove it entirely and use the one already in igt_main.
CC Chris Wilson <[email protected]>
Signed-off-by Marius Vlad <[email protected]>
--- tests/kms_cursor_legacy.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
tests/kms_cursor_legacy.c +8 -5
@@ -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 ); } }
Signature · 6 lines
2.8.0.rc3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx