From 31fc989fc86b6d18a65d1fe4932c497dd4bab76e Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 25 Jul 2019 15:35:43 +0300 Subject: tests/kms_3d: Unset all crtcs before the test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On pre-HSW we have separate encoders for the DP and HDMI ports, but both can't be enabled at the same time. The test fails to account for that and can thus fail when the kernel rejects the modeset. We can avoid that by turning off all the ports beforehand. v2: rebased (Arek) Signed-off-by: Ville Syrjälä Cc: Simon Ser Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105594 Signed-off-by: Arkadiusz Hiler Reviewed-by: Simon Ser --- tests/kms_3d.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/kms_3d.c b/tests/kms_3d.c index 8ade6d34..aed3bee3 100644 --- a/tests/kms_3d.c +++ b/tests/kms_3d.c @@ -56,6 +56,8 @@ igt_simple_main } igt_require(connector); + kmstest_unset_all_crtcs(drm_fd, res); + edid = igt_kms_get_3d_edid(); kmstest_force_edid(drm_fd, connector, edid); -- cgit v1.2.3