From ec83ef916779d837efb29d8978cfbb8b690c6ce1 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Tue, 3 May 2016 10:40:22 -0400 Subject: kms_panel_fitting: Enable connectors with "scaling mode" property set. Enable testing on all connectors that have the "scaling mode" property set. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93012 Signed-off-by: Robert Foss Reviewed-by: Daniel Vetter Signed-off-by: Marius Vlad --- tests/kms_panel_fitting.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tests/kms_panel_fitting.c') diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c index 272a5317..b796c681 100644 --- a/tests/kms_panel_fitting.c +++ b/tests/kms_panel_fitting.c @@ -139,9 +139,18 @@ static void test_panel_fitting(data_t *d) for_each_connected_output(display, output) { drmModeModeInfo *mode, native_mode; - - if (output->config.connector->connector_type != - DRM_MODE_CONNECTOR_eDP) + bool scaling_mode_set; + + scaling_mode_set = kmstest_get_property(d->drm_fd, + output->config.connector->connector_id, + DRM_MODE_OBJECT_CONNECTOR, + "scaling mode", + NULL, + NULL, + NULL); + + /* Check that the "scaling mode" property has been set. */ + if (!scaling_mode_set) continue; pipe = output->config.pipe; -- cgit v1.2.3