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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

CC: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Marius Vlad <marius.c.vlad@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux