diff mbox

[i-g-t] tests/kms_cursor_legacy: Fix igt_fixture.

Message ID 1464184272-4020-1-git-send-email-marius.c.vlad@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marius Vlad May 25, 2016, 1:51 p.m. UTC
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(-)
diff mbox

Patch

diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index 14281d1..fb77ec1 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -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);
 		}
 	}