diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-08 19:24:24 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:22 +0100 |
commit | c4564e0a51dcbe6489dd02853908a8f4cdb6055a (patch) | |
tree | 1a541199ed494acd628631befa1a5ec56979531e /tests/kms_rotation_crc.c | |
parent | 2eaa50f02e2cf9b8ed545eee333110cae2c552db (diff) |
kms_rotation_crc: Allow the sprite test to run even without universal planes
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, 5 insertions, 2 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index d196c7cd..d318cd2a 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -142,9 +142,12 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type) enum pipe pipe; int valid_tests = 0; igt_crc_t crc_output; + enum igt_commit_style commit = COMMIT_LEGACY; - if (plane_type == IGT_PLANE_PRIMARY) + if (plane_type == IGT_PLANE_PRIMARY) { igt_require(data->display.has_universal_planes); + commit = COMMIT_UNIVERSAL; + } for_each_connected_output(display, output) { for_each_pipe(display, pipe) { @@ -159,7 +162,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type) continue; igt_plane_set_rotation(plane, IGT_ROTATION_180); - igt_display_commit2(display, COMMIT_UNIVERSAL); + igt_display_commit2(display, commit); igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output); igt_assert(igt_crc_equal(&data->ref_crc, &crc_output)); |