public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] kms_frontbuffer_tracking: Remove hardcoded PIPE_A
@ 2016-03-04 10:02 Gabriel Feceoru
  2016-03-04 22:18 ` Zanoni, Paulo R
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Feceoru @ 2016-03-04 10:02 UTC (permalink / raw)
  To: intel-gfx; +Cc: paulo.r.zanoni

Use the pipe which is given from the possible_crcs for that connected port
instead.

On BSW there are constrains for the crtc<-->connector, this fix make this test
passing on BSW.

Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com>
---
 tests/kms_frontbuffer_tracking.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 634c98b..afdb394 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1432,7 +1432,8 @@ static void setup_crcs(void)
 {
 	enum pixel_format f;
 
-	pipe_crc = igt_pipe_crc_new(0, INTEL_PIPE_CRC_SOURCE_AUTO);
+	int crtc_idx = kmstest_get_crtc_idx(drm.res, prim_mode_params.crtc_id);
+	pipe_crc = igt_pipe_crc_new(crtc_idx, INTEL_PIPE_CRC_SOURCE_AUTO);
 
 	setup_sink_crc();
 
-- 
1.9.1

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

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

end of thread, other threads:[~2016-03-04 22:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04 10:02 [PATCH i-g-t] kms_frontbuffer_tracking: Remove hardcoded PIPE_A Gabriel Feceoru
2016-03-04 22:18 ` Zanoni, Paulo R

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