[Intel-gfx] [PATCH i-g-t v5 6/6] kms_panel_fitting: Enable connectors with "scaling mode" property set.
Marius Vlad
marius.c.vlad at intel.com
Tue May 3 13:31:19 UTC 2016
This doesn't apply cleanly, the patch from Jani from was not applied, so
is still using igt_require() for testing the connector type. Diff
against master.
On Thu, Apr 28, 2016 at 09:45:24AM -0400, robert.foss at collabora.com wrote:
> From: Robert Foss <robert.foss at 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 at collabora.com>
> Reviewed-by: Daniel Vetter <daniel.vetter at 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160503/fa76b663/attachment.sig>
More information about the Intel-gfx
mailing list