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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-09-07 15:52:10 +01:00
parent b76f1d8b03
commit be6bb4ce4a

View File

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