summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>2020-02-27 15:27:03 +0200
committerJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>2020-03-02 11:09:46 +0200
commit1707153df224ffb6333c6c660a792b7f334eb3d3 (patch)
treee1911d7c4e874fa9fec7e8d31621b8c842bff53b /tests/kms_rotation_crc.c
parent2a9571ad5dabe59ed0093e14f29ae247a61f4100 (diff)
tests/kms_rotation_crc: remove redundant work
removed fb does not take part into final crc comparisons. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index 58bebf3b..164eade8 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -54,7 +54,6 @@ typedef struct {
igt_display_t display;
struct igt_fb fb;
struct igt_fb fb_reference;
- struct igt_fb fb_unrotated;
struct igt_fb fb_flip;
igt_crc_t ref_crc;
igt_crc_t flip_crc;
@@ -156,7 +155,6 @@ static void remove_fbs(data_t *data)
{
igt_remove_fb(data->gfx_fd, &data->fb);
igt_remove_fb(data->gfx_fd, &data->fb_reference);
- igt_remove_fb(data->gfx_fd, &data->fb_unrotated);
igt_remove_fb(data->gfx_fd, &data->fb_flip);
}
@@ -306,17 +304,6 @@ static void prepare_fbs(data_t *data, igt_output_t *output,
igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &data->ref_crc);
/*
- * Prepare the non-rotated reference fb.
- */
- igt_create_fb(data->gfx_fd, ref_w, ref_h, pixel_format, tiling, &data->fb_unrotated);
- paint_squares(data, IGT_ROTATION_0, &data->fb_unrotated, 1.0);
- igt_plane_set_fb(plane, &data->fb_unrotated);
- igt_plane_set_rotation(plane, IGT_ROTATION_0);
- if (plane->type != DRM_PLANE_TYPE_CURSOR)
- igt_plane_set_position(plane, data->pos_x, data->pos_y);
- igt_display_commit2(display, COMMIT_ATOMIC);
-
- /*
* Prepare the plane with an non-rotated fb let the hw rotate it.
*/
igt_create_fb(data->gfx_fd, w, h, pixel_format, tiling, &data->fb);