From be6bb4ce4a413df5ec385523313a4e2a3894d4c8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 7 Sep 2014 15:52:10 +0100 Subject: igt/kms_flip_tiling: Use the associated pipe for the output This stops us from using an illegal pipe, such as pipe 0 for LVDS on PNV. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82280 Signed-off-by: Chris Wilson --- tests/kms_flip_tiling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/kms_flip_tiling.c') diff --git a/tests/kms_flip_tiling.c b/tests/kms_flip_tiling.c index 1f2caac8..9c2f7fec 100644 --- a/tests/kms_flip_tiling.c +++ b/tests/kms_flip_tiling.c @@ -67,9 +67,9 @@ test_flip_changes_tiling(data_t *data, igt_output_t *output) igt_crc_t reference_crc, crc; int fb_id, pipe, ret, width; - pipe = 0; + pipe = output->config.pipe; pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO); - igt_output_set_pipe(output, 0); + igt_output_set_pipe(output, pipe); mode = igt_output_get_mode(output); primary = igt_output_get_plane(output, 0); -- cgit v1.2.3