diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-10 17:44:28 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:23 +0100 |
commit | 282f5605b02a2fc0f1c1547d59e39810962112dd (patch) | |
tree | f712873b079a99ba89918e4ab3be4ae8938fc103 /tests/kms_rotation_crc.c | |
parent | 05f3897dc183a6ff409e146247e3f681610295cb (diff) |
kms_rotation_crc: Document the two steps in prepare_crtc()
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 5780e403..cb1b00bf 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -104,14 +104,19 @@ static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe, &data->fb); igt_assert(fb_id); + /* Step 1: create a reference CRC for a software-rotated fb */ + paint_squares(data, &data->fb, mode, DRM_ROTATE_180); igt_plane_set_fb(plane, &data->fb); igt_display_commit(display); - /* Collect reference crc */ igt_pipe_crc_collect_crc(data->pipe_crc, &data->ref_crc); + /* + * Step 2: prepare the plane with an non-rotated fb let the hw + * rotate it. + */ paint_squares(data, &data->fb, mode, DRM_ROTATE_0); igt_plane_set_fb(plane, &data->fb); |