From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: robert.foss@collabora.com
Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org,
daniel.stone@collabora.com
Subject: Re: [PATCH i-g-t v3 6/6] kms_panel_fitting: Enable connectors with "scaling mode" property set.
Date: Wed, 27 Apr 2016 13:37:36 +0300 [thread overview]
Message-ID: <20160427103736.GI4329@intel.com> (raw)
In-Reply-To: <1461701492-9975-7-git-send-email-robert.foss@collabora.com>
On Tue, Apr 26, 2016 at 04:11:32PM -0400, robert.foss@collabora.com wrote:
> From: Robert Foss <robert.foss@collabora.com>
>
> Enable testing on all connectors that have the "scaling mode"
> property set.
>
> 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);
I think you can just pass NULL for all the out paramters since you're
not using them. As a bonus that'll plug the memory leak you have now.
> +
> + /* Check that the "scaling mode" property has been set. */
> + if (!scaling_mode_set)
> continue;
>
> pipe = output->config.pipe;
> --
> 2.5.0
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-04-27 10:37 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
2016-04-27 10:37 ` Ville Syrjälä [this message]
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=20160427103736.GI4329@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=daniel.stone@collabora.com \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=robert.foss@collabora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.