Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: Make test pass on gen9's pipe C
@ 2018-03-14 10:54 Maarten Lankhorst
  2018-03-14 11:04 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Maarten Lankhorst @ 2018-03-14 10:54 UTC (permalink / raw)
  To: igt-dev

The legacy test fails because it tries scaling on pipe C,
because the single scaler is already used for CRTC scaling.
On other pipes and newer gens we have 2 scalers, so special
case pipe C here.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105456
---
 tests/kms_panel_fitting.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 1f087ecc82a0..5dce101003c5 100644
--- a/tests/kms_panel_fitting.c
+++ b/tests/kms_panel_fitting.c
@@ -133,6 +133,14 @@ static void test_panel_fitting(data_t *d)
 		igt_plane_set_size(d->plane2, mode->hdisplay-200, mode->vdisplay-200);
 		igt_display_commit2(display, COMMIT_UNIVERSAL);
 
+		/*
+		 * gen9 pipe C has only 1 scaler shared with the crtc, which
+		 * means pipe scaling can't work simultaneously with panel
+		 * fitting.
+		 */
+		if (intel_gen(intel_get_drm_devid(display->drm_fd)) == 9 && pipe == PIPE_C)
+			igt_plane_set_size(d->plane2, d->fb2.width-200, d->fb2.height-200);
+
 		/* enable panel fitting along with sprite scaling */
 		mode->hdisplay = 1024;
 		mode->vdisplay = 768;
-- 
2.16.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2018-03-14 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14 10:54 [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: Make test pass on gen9's pipe C Maarten Lankhorst
2018-03-14 11:04 ` Chris Wilson
2018-03-14 16:18   ` Maarten Lankhorst
2018-03-14 12:51 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-03-14 16:16 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox