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

Marius Vlad marius.c.vlad at intel.com
Wed May 25 13:51:12 UTC 2016


Either use a igt_fixture for crtcs or remove it entirely and use
the one already in igt_main.

CC: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Marius Vlad <marius.c.vlad at intel.com>
---
 tests/kms_cursor_legacy.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

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);
 		}
 	}
 
-- 
2.8.0.rc3



More information about the Intel-gfx mailing list