diff options
author | Robert Foss <robert.foss@collabora.com> | 2016-05-03 10:40:22 -0400 |
---|---|---|
committer | Marius Vlad <marius.c.vlad@intel.com> | 2016-05-03 18:27:34 +0300 |
commit | ec83ef916779d837efb29d8978cfbb8b690c6ce1 (patch) | |
tree | 19224aaf904e75950d05c148f212659eedcd4c9f /tests/kms_panel_fitting.c | |
parent | 2254aff17eca95ab570947701c79690965705f60 (diff) |
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 <robert.foss@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'tests/kms_panel_fitting.c')
-rw-r--r-- | tests/kms_panel_fitting.c | 15 |
1 files changed, 12 insertions, 3 deletions
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; |