summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorpvishwak <pratik.vishwakarma@intel.com>2016-04-11 11:24:56 +0530
committerMarius Vlad <marius.c.vlad@intel.com>2016-04-20 19:49:49 +0300
commit8b8d7aaffd35be7f4f81623165f26c21b83dfa54 (patch)
tree5975e987410402ccb198101bef1af3b24325b0e6 /tests/kms_rotation_crc.c
parenta256df9dc6337fb8f10df5e1033ac36352c1f6a7 (diff)
tests/kms_rotation_crc: Adding rotation tests using COMMIT_ATOMIC path
Modified kms_rotation_crc to follow COMMIT_ATOMIC path if ATOMIC support is available from driver. If ATOMIC support is not present, tests will follow COMMIT_UNIVERSAL path. v2: (Marius) Updated commit message https://patchwork.freedesktop.org/patch/76040/ v3: (Marius) Added description in commit message https://patchwork.freedesktop.org/patch/79492/ Signed-off-by: Pratik Vishwakarma <pratik.vishwakarma@intel.com> [mcvlad: Re-worked a little comment description] Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index f94f8f12..6cc15337 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -111,6 +111,9 @@ static void commit_crtc(data_t *data, igt_output_t *output, igt_plane_t *plane)
commit = COMMIT_UNIVERSAL;
}
+ if (data->display.is_atomic)
+ commit = COMMIT_ATOMIC;
+
igt_display_commit2(display, commit);
}
@@ -250,6 +253,9 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type)
commit = COMMIT_UNIVERSAL;
}
+ if (data->display.is_atomic)
+ commit = COMMIT_ATOMIC;
+
for_each_connected_output(display, output) {
for_each_pipe(display, pipe) {
igt_plane_t *plane;
@@ -340,6 +346,9 @@ static void test_plane_rotation_ytiled_obj(data_t *data, enum igt_plane plane_ty
commit = COMMIT_UNIVERSAL;
}
+ if (data->display.is_atomic)
+ commit = COMMIT_ATOMIC;
+
mode = igt_output_get_mode(output);
w = mode->hdisplay;
h = mode->vdisplay;
@@ -404,6 +413,9 @@ static void test_plane_rotation_exhaust_fences(data_t *data, enum igt_plane plan
commit = COMMIT_UNIVERSAL;
}
+ if (data->display.is_atomic)
+ commit = COMMIT_ATOMIC;
+
mode = igt_output_get_mode(output);
w = mode->hdisplay;
h = mode->vdisplay;