summaryrefslogtreecommitdiff
path: root/tests/kms_3d.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-07-25 15:35:43 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-07-26 09:10:43 +0300
commit31fc989fc86b6d18a65d1fe4932c497dd4bab76e (patch)
tree35de145d25689e54eb2096a3b2844b3792e1fc96 /tests/kms_3d.c
parent7e4d10507088055413769a020dd674f52b4bc1b0 (diff)
tests/kms_3d: Unset all crtcs before the test
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ä <ville.syrjala@linux.intel.com> Cc: Simon Ser <simon.ser@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105594 Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Simon Ser <simon.ser@intel.com>
Diffstat (limited to 'tests/kms_3d.c')
-rw-r--r--tests/kms_3d.c2
1 files changed, 2 insertions, 0 deletions
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);