mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 23:36:30 +00:00
kms_rotation_crc: Allow the sprite test to run even without universal planes
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
2eaa50f02e
commit
c4564e0a51
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user