diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-22 09:30:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-24 11:20:18 +0100 |
commit | 364f9eca192de94bd250ba63f0d418d993896ee7 (patch) | |
tree | 73de6e1585c4d807ed7a4c838443207b8984089c /tests/kms_setmode.c | |
parent | 93437cba7fc87755dd27b4acdc021107301fbe8c (diff) | |
download | platform_external_igt-gpu-tools-364f9eca192de94bd250ba63f0d418d993896ee7.tar.gz platform_external_igt-gpu-tools-364f9eca192de94bd250ba63f0d418d993896ee7.tar.bz2 platform_external_igt-gpu-tools-364f9eca192de94bd250ba63f0d418d993896ee7.zip |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_setmode.c')
-rw-r--r-- | tests/kms_setmode.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |