diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-08 18:46:57 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:22 +0100 |
commit | ffc954e739fb58b3ad4336a42a35c417df875253 (patch) | |
tree | a0f83189d5f6cdebb743d4391f998dcfce39d6be /tests/kms_rotation_crc.c | |
parent | b146e8128d8ca5327f2a8d306e9cdeab855d9639 (diff) |
kms_rotation_crc: Remove 'output' from the state
This restore the balance between prepare_crtc() and cleanup_crtc(), both
now taking the output as a parameter.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r-- | tests/kms_rotation_crc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index a68aece0..5b195f95 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -46,7 +46,6 @@ typedef struct { int gfx_fd; igt_display_t display; - igt_output_t *output; igt_plane_t *plane; struct igt_fb fb; igt_crc_t ref_crc; @@ -79,7 +78,7 @@ paint_squares(data_t *data, struct igt_fb *fb, drmModeModeInfo *mode, cairo_destroy(cr); } -static bool prepare_crtc(data_t *data, enum pipe pipe) +static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe) { drmModeModeInfo *mode; igt_display_t *display = &data->display; @@ -150,9 +149,8 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) igt_require(data->display.has_universal_planes); for_each_connected_output(display, output) { - data->output = output; for_each_pipe(display, pipe) { - if (!prepare_crtc(data, pipe)) + if (!prepare_crtc(data, output, pipe)) continue; sleep(2); |