From: Marius Vlad Subject: Re: [PATCH i-g-t v5 6/6] kms_panel_fitting: Enable connectors with "scaling mode" property set. Date: Tue, 3 May 2016 16:31:19 +0300 Message-ID: <20160503133119.GA16187@mcvlad-wk.rb.intel.com> References: <1461851124-27256-1-git-send-email-robert.foss@collabora.com> <1461851124-27256-7-git-send-email-robert.foss@collabora.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1142208840==" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTP id 27FDB6E805 for ; Tue, 3 May 2016 13:28:15 +0000 (UTC) In-Reply-To: <1461851124-27256-7-git-send-email-robert.foss@collabora.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: robert.foss@collabora.com Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, daniel.stone@collabora.com List-Id: intel-gfx@lists.freedesktop.org --===============1142208840== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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@collabora.com wrote: > From: Robert Foss >=20 > Enable testing on all connectors that have the "scaling mode" > property set. >=20 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D93012 > Signed-off-by: Robert Foss > Reviewed-by: Daniel Vetter > --- > tests/kms_panel_fitting.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) >=20 > 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) > =20 > for_each_connected_output(display, output) { > drmModeModeInfo *mode, native_mode; > - > - if (output->config.connector->connector_type !=3D > - DRM_MODE_CONNECTOR_eDP) > + bool scaling_mode_set; > + > + scaling_mode_set =3D 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; > =20 > pipe =3D output->config.pipe; > --=20 > 2.5.0 >=20 > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEbBAEBAgAGBQJXKKgnAAoJELmLWIAQzyE+mA8H904+hGXCG6LThwZNW+towUUa ySJcBb5e9h74a2BVTAlpfXa6GeJ0pY3Mf1ljtI0sNIEB7lre4AvdK9s5Kzn0I1/w lvBzAEhx5+6sGyYRtGzWWXqSQXV8i7QmSqp9Qgvy1KVNZf6rhcoHvD8N8zhgVxDM FZvDYWLBD65gIuk82aPDr17KZY69fwEI4CEP3GErlsQEBI4ORrmcOWd5QvBWKDwk f5kNAbVG82fjqbJzeZO6UeJMLTKKNilPTRHSE9ZCYHlnc6Iq8Ywe2fDPzW5C7KZV UCOOT+O3xpN1TTgB+hB+8nMg7JHKkTcWQY2orAAUd/fVisIYRWeMttwYuPRm5w== =U/9Z -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- --===============1142208840== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============1142208840==--