[i-g-t 3/4] tests/intel/kms_frontbuffer_tracking: Do modeset in init

Bhanuprakash Modem bhanuprakash.modem at intel.com
Tue Dec 26 06:52:27 UTC 2023


Make sure to do a modeset before checking the feature availability
on selected pipe/output.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/intel/kms_frontbuffer_tracking.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 8599286a8..bbac0a94a 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -1553,6 +1553,7 @@ static bool find_connector(bool edp_only, bool pipe_a,
 			*ret_pipe = pipe;
 			return true;
 		}
+		igt_output_set_pipe(output, PIPE_NONE);
 	}
 
 	return false;
@@ -2403,6 +2404,8 @@ static void teardown_drm(void)
 static void setup_modeset(void)
 {
 	igt_require(init_modeset_cached_params());
+	igt_display_commit(&drm.display);
+
 	offscreen_fb.fb = NULL;
 	offscreen_fb.w = 1024;
 	offscreen_fb.h = 1024;
-- 
2.40.0



More information about the Intel-gfx-trybot mailing list