From: Jani Nikula <jani.nikula@linux.intel.com>
To: robert.foss@collabora.com, ville.syrjala@linux.intel.com,
daniel.vetter@ffwll.ch, daniel.stone@collabora.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t v3 6/6] kms_panel_fitting: Enable connectors with "scaling mode" property set.
Date: Wed, 27 Apr 2016 11:32:12 +0300 [thread overview]
Message-ID: <87shy7jvub.fsf@intel.com> (raw)
In-Reply-To: <1461701492-9975-7-git-send-email-robert.foss@collabora.com>
On Tue, 26 Apr 2016, robert.foss@collabora.com wrote:
> 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>
> ---
> tests/kms_panel_fitting.c | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> index 272a531..de27803 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -139,9 +139,21 @@ 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)
> + uint32_t prop_id;
> + uint64_t prop_value;
> + drmModePropertyPtr prop_ptr;
> + bool scaling_mode_set;
> +
> + scaling_mode_set = kmstest_get_property(d->drm_fd,
> + output->config.connector->connector_id,
> + DRM_MODE_OBJECT_CONNECTOR,
> + "scaling mode",
> + &prop_id,
> + &prop_value,
> + &prop_ptr);
> +
> + /* Check that the "scaling mode" property has been set. */
> + if (!scaling_mode_set)
> continue;
>
> pipe = output->config.pipe;
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-04-27 8:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 20:11 [PATCH i-g-t v3 0/6] Improve kms_panel_fitting robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 1/6] kms_panel_fitting: Remove un-read variable robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 2/6] kms_panel_fitting: Remove un-read variable pipe_crc robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 3/6] kms_panel_fitting: Remove un-used variable robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 4/6] kms_panel_fitting: Switched DRM format to a hardware agnostic alternative robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 5/6] kms_panel_fitting: Enabled test on non-Intel hardware robert.foss
2016-04-26 20:11 ` [PATCH i-g-t v3 6/6] kms_panel_fitting: Enable connectors with "scaling mode" property set robert.foss
2016-04-27 8:32 ` Jani Nikula [this message]
2016-04-27 10:37 ` Ville Syrjälä
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=87shy7jvub.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=daniel.stone@collabora.com \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=robert.foss@collabora.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