From 364f9eca192de94bd250ba63f0d418d993896ee7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 22 Oct 2016 09:30:21 +0100 Subject: igt/kms_setmode: Clear all connectors before starting the test Before we start trying random combinations of connectors and CRTCs, we should first ensure we have a blank slate so that if we only change a subset of the CRTC we do not conflict with a residual setup on the other CRTC. Signed-off-by: Chris Wilson --- tests/kms_setmode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/kms_setmode.c') diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 24fb34ca..64e21cd1 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -268,6 +268,8 @@ static void setup_crtcs(drmModeRes *resources, struct connector_config *cconf, int i; int encoder_usage_count[resources->count_encoders]; + kmstest_unset_all_crtcs(drm_fd, resources); + i = 0; crtc_count = 0; crtc = crtcs; -- cgit v1.2.3