diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-08 18:20:51 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:22 +0100 |
commit | eb81a922c7958e8680c95febca588314129ff790 (patch) | |
tree | 7ac67998f403c1a5d8f9e3a7032b48b7c87147f4 /tests/kms_rotation_crc.c | |
parent | 13e979c7649eeb90fbd1abaaec61bcb3028acfc9 (diff) |
kms_rotation_crc: Always disable the plane in cleanup
There's no need for this check, always use set_fb(NULL) on the plane.
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 0edc6c3b..30eb2277 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -185,11 +185,9 @@ static void cleanup_crtc(data_t *data, igt_output_t *output) data->pipe_crc = NULL; igt_remove_fb(data->gfx_fd, &data->fb); - - if (data->plane != NULL) - igt_plane_set_fb(data->plane, NULL); - + igt_plane_set_fb(data->plane, NULL); igt_output_set_pipe(output, PIPE_ANY); + igt_display_commit(display); } |