summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonika Jindal <sonika.jindal@intel.com>2014-08-19 12:01:25 +0530
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-08-26 12:46:57 +0200
commit4428151960b71a2ca4c83e8da3f4b0b826a8a26c (patch)
treea909815acc79e41dce5959db49f63bf3e0727019
parentc1cf0d81389e8cc696a233aa357130f97e1b9a4c (diff)
kms_rotation_crc: Calling commit2 instead of legacy commit
Since planes are universal now, using commit2 so that drmModeSetPlane can be called for primary plane as well instead of drmModeSetCrtc. drmModeSetPlane will update the x,y,w,h for the plane. Cc: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/kms_rotation_crc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index 9f272fa2..afa17018 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -72,7 +72,6 @@ static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe,
igt_output_set_pipe(output, pipe);
-
/* create the pipe_crc object for this pipe */
igt_pipe_crc_free(data->pipe_crc);
data->pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
@@ -119,8 +118,6 @@ static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe,
paint_squares(data, &data->fb, mode, IGT_ROTATION_0);
igt_plane_set_fb(plane, &data->fb);
- igt_display_commit(display);
-
return true;
}
@@ -172,6 +169,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type)
if (!prepare_crtc(data, output, pipe, plane))
continue;
+ igt_display_commit2(display, commit);
/* collect unrotated CRC */
igt_display_commit2(display, commit);