public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: robert.foss@collabora.com
To: ville.syrjala@linux.intel.com, daniel.vetter@ffwll.ch,
	daniel.stone@collabora.com, jani.nikula@linux.intel.com,
	marius.c.vlad@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t v6 7/7] kms_panel_fitting: Enable connectors with "scaling mode" property set.
Date: Tue,  3 May 2016 10:40:22 -0400	[thread overview]
Message-ID: <1462286422-14845-8-git-send-email-robert.foss@collabora.com> (raw)
In-Reply-To: <1462286422-14845-1-git-send-email-robert.foss@collabora.com>

From: Robert Foss <robert.foss@collabora.com>

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>
---
 tests/kms_panel_fitting.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 272a531..b796c68 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;
-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2016-05-03 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03 14:40 [PATCH i-g-t v6 0/7] Improve kms_panel_fitting robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 1/7] kms_panel_fitting: skips if there's a non-eDP display connected. Fix it robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 2/7] kms_panel_fitting: Remove un-read variable robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 3/7] kms_panel_fitting: Remove un-read variable pipe_crc robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 4/7] kms_panel_fitting: Remove un-used variable robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 5/7] kms_panel_fitting: Switched DRM format to a hardware agnostic alternative robert.foss
2016-05-03 14:40 ` [PATCH i-g-t v6 6/7] kms_panel_fitting: Enabled test on non-Intel hardware robert.foss
2016-05-03 14:40 ` robert.foss [this message]
2016-05-03 15:29 ` [PATCH i-g-t v6 0/7] Improve kms_panel_fitting Marius Vlad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462286422-14845-8-git-send-email-robert.foss@collabora.com \
    --to=robert.foss@collabora.com \
    --cc=daniel.stone@collabora.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=marius.c.vlad@intel.com \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox