diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-08 18:27:10 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:22 +0100 |
commit | f7250d041d09b5fc83d8c98c3230696317c97cc7 (patch) | |
tree | dac81a875326fb49a9f88a01a3fcdce08ca631e3 /tests/kms_rotation_crc.c | |
parent | eb81a922c7958e8680c95febca588314129ff790 (diff) |
kms_rotation_crc: Don't store rotate in the test state
We don't use it anywhere else than the test function.
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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 30eb2277..81d001b2 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -62,7 +62,6 @@ typedef struct { struct igt_fb fb; igt_crc_t ref_crc; igt_pipe_crc_t *pipe_crc; - int rotate; } data_t; static void @@ -208,7 +207,6 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) data->output = output; for (p = 0; p < igt_display_get_n_pipes(display); p++) { data->pipe = p; - data->rotate = DRM_ROTATE_180; if (!prepare_crtc(data)) continue; @@ -221,7 +219,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) plane_id = data->plane->drm_plane->plane_id; if (plane_id != 0) { igt_info("Setting rotation property for plane:%d\n", plane_id); - ret = set_plane_property(data, plane_id, "rotation", BIT(data->rotate), &crc_output); + ret = set_plane_property(data, plane_id, "rotation", BIT(DRM_ROTATE_180), &crc_output); if (ret < 0) { igt_info("Setting rotation failed!"); return; |