intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [i-g-t PATCH] tests: don't skip kms_panel_fitting when non-eDP connected
@ 2016-03-23 12:19 Jani Nikula
  2016-03-23 13:44 ` Marius Vlad
  0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2016-03-23 12:19 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

kms_panel_fitting skips if there's a non-eDP display connected. Fix it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93012
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 tests/kms_panel_fitting.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 829d9cdd0631..1f9412f6e2d5 100644
--- a/tests/kms_panel_fitting.c
+++ b/tests/kms_panel_fitting.c
@@ -150,8 +150,9 @@ static void test_panel_fitting(data_t *d)
 	for_each_connected_output(display, output) {
 		drmModeModeInfo *mode, native_mode;
 
-		igt_require(output->config.connector->connector_type ==
-			DRM_MODE_CONNECTOR_eDP);
+		if (output->config.connector->connector_type !=
+		    DRM_MODE_CONNECTOR_eDP)
+			continue;
 
 		pipe = output->config.pipe;
 		igt_output_set_pipe(output, pipe);
-- 
2.1.4

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [i-g-t PATCH] tests: don't skip kms_panel_fitting when non-eDP connected
  2016-03-23 12:19 [i-g-t PATCH] tests: don't skip kms_panel_fitting when non-eDP connected Jani Nikula
@ 2016-03-23 13:44 ` Marius Vlad
  2016-03-23 14:47   ` Ville Syrjälä
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Vlad @ 2016-03-23 13:44 UTC (permalink / raw)
  To: Jani Nikula; +Cc: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 1317 bytes --]

Is there a reason why other connectors do not support panel fitting?

Removed the check and using a HDMI connector the test passes...

On Wed, Mar 23, 2016 at 02:19:25PM +0200, Jani Nikula wrote:
> kms_panel_fitting skips if there's a non-eDP display connected. Fix it.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93012
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  tests/kms_panel_fitting.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> index 829d9cdd0631..1f9412f6e2d5 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -150,8 +150,9 @@ static void test_panel_fitting(data_t *d)
>  	for_each_connected_output(display, output) {
>  		drmModeModeInfo *mode, native_mode;
>  
> -		igt_require(output->config.connector->connector_type ==
> -			DRM_MODE_CONNECTOR_eDP);
> +		if (output->config.connector->connector_type !=
> +		    DRM_MODE_CONNECTOR_eDP)
> +			continue;
>  
>  		pipe = output->config.pipe;
>  		igt_output_set_pipe(output, pipe);
> -- 
> 2.1.4
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [i-g-t PATCH] tests: don't skip kms_panel_fitting when non-eDP connected
  2016-03-23 13:44 ` Marius Vlad
@ 2016-03-23 14:47   ` Ville Syrjälä
  0 siblings, 0 replies; 3+ messages in thread
From: Ville Syrjälä @ 2016-03-23 14:47 UTC (permalink / raw)
  To: Jani Nikula, intel-gfx

On Wed, Mar 23, 2016 at 03:44:15PM +0200, Marius Vlad wrote:
> Is there a reason why other connectors do not support panel fitting?

LVDS supports it, and with this [1] DSI too. No clue why the test checks
for eDP only. What it really should be testing is the presence of the
"scaling mode" property, and then it magically works on everything.

There have also been a few half hearted attempts at adding panel fitter
support for external displays, but those didn't really go anywhere. My
plan for this is that we'd add a "fixed mode" property to all
connectors, and then the user could set that to whatever actual display
timings they want to use, and the normal mode would then provide the
pfit source size just like it does for connectors where we currently
enable the panel fitter.

[1] https://lists.freedesktop.org/archives/intel-gfx/2016-March/089786.html

> 
> Removed the check and using a HDMI connector the test passes...
> 
> On Wed, Mar 23, 2016 at 02:19:25PM +0200, Jani Nikula wrote:
> > kms_panel_fitting skips if there's a non-eDP display connected. Fix it.
> > 
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93012
> > Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> > ---
> >  tests/kms_panel_fitting.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> > index 829d9cdd0631..1f9412f6e2d5 100644
> > --- a/tests/kms_panel_fitting.c
> > +++ b/tests/kms_panel_fitting.c
> > @@ -150,8 +150,9 @@ static void test_panel_fitting(data_t *d)
> >  	for_each_connected_output(display, output) {
> >  		drmModeModeInfo *mode, native_mode;
> >  
> > -		igt_require(output->config.connector->connector_type ==
> > -			DRM_MODE_CONNECTOR_eDP);
> > +		if (output->config.connector->connector_type !=
> > +		    DRM_MODE_CONNECTOR_eDP)
> > +			continue;
> >  
> >  		pipe = output->config.pipe;
> >  		igt_output_set_pipe(output, pipe);
> > -- 
> > 2.1.4
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx



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


-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-23 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 12:19 [i-g-t PATCH] tests: don't skip kms_panel_fitting when non-eDP connected Jani Nikula
2016-03-23 13:44 ` Marius Vlad
2016-03-23 14:47   ` Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).