summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGabriel Feceoru <gabriel.feceoru@intel.com>2016-03-04 12:02:14 +0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2016-03-04 19:14:32 -0300
commit55fa16b6547ee9b0f305fee8bf14338626f91dfa (patch)
tree5a0b0d649bf07c0e46a865c15c271142967bda2f /tests
parent5267f2447146b1d8fc555f0d8253bd8eb215f39b (diff)
kms_frontbuffer_tracking: Remove hardcoded PIPE_A
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. v2 (from Paulo): bikeshed the blank lines. Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_frontbuffer_tracking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 634c98bb..c8609351 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1431,8 +1431,9 @@ static void setup_sink_crc(void)
static void setup_crcs(void)
{
enum pixel_format f;
+ int crtc_idx = kmstest_get_crtc_idx(drm.res, prim_mode_params.crtc_id);
- pipe_crc = igt_pipe_crc_new(0, INTEL_PIPE_CRC_SOURCE_AUTO);
+ pipe_crc = igt_pipe_crc_new(crtc_idx, INTEL_PIPE_CRC_SOURCE_AUTO);
setup_sink_crc();