mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
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>
This commit is contained in:
parent
a256df9dc6
commit
8b8d7aaffd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user