[igt-dev] [i-g-t] tests/kms_cursor_legacy: Avoid usage of same pipe on multiple outputs

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Jul 11 14:19:40 UTC 2022


Sanitize the system state before starting the subtest.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6198
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_cursor_legacy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index fc4a291d..c5b2bd30 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -429,6 +429,8 @@ static void flip(igt_display_t *display,
 	results = mmap(NULL, PAGE_SIZE, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
 	igt_assert(results != MAP_FAILED);
 
+	igt_display_reset(display);
+
 	flip_pipe = find_connected_pipe(display, !!flip_pipe);
 	cursor_pipe = find_connected_pipe(display, !!cursor_pipe);
 
-- 
2.35.1



More information about the igt-dev mailing list