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>
This commit is contained in:
Gabriel Feceoru 2016-03-04 12:02:14 +02:00 committed by Paulo Zanoni
parent 5267f24471
commit 55fa16b654

View File

@ -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();