diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-07-16 15:37:32 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-09-21 18:30:31 +0300 |
commit | 52d588642e96e4f8dc9dafb9a83469e4434faf03 (patch) | |
tree | 750d2f7aee5bbfa59f332ca85984aba6748d05ed /tests/i915 | |
parent | 1941007d724de2f4deeea7eaab4fa3cb2dcc5acf (diff) |
tests/kms_big_fb: Use igt_plane_has_rotation()
Use igt_plane_has_rotation() instead of the manual
"if there's no rotation prop -> only 0 dgree is supported"
conclusion.
And let's also get rid of the atomic vs. 0/270 degree rotation
check. I think I added this to avoid the test failing since
we can't do the TEST_ONLY probe withoiut atomic. With the
unsupported rotations filtered out ahead of time we should
never get into that situation.
Reviewed-by: Karthik B S <karthik.b.s@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/i915')
-rw-r--r-- | tests/i915/kms_big_fb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/i915/kms_big_fb.c b/tests/i915/kms_big_fb.c index b988a092..092cbc68 100644 --- a/tests/i915/kms_big_fb.c +++ b/tests/i915/kms_big_fb.c @@ -323,14 +323,7 @@ static bool test_plane(data_t *data) if (!igt_plane_has_format_mod(plane, data->format, data->modifier)) return false; - if (data->rotation != IGT_ROTATION_0 && - !igt_plane_has_prop(plane, IGT_PLANE_ROTATION)) - return false; - - /* FIXME need atomic on i965/g4x */ - if (data->rotation != IGT_ROTATION_0 && - data->rotation != IGT_ROTATION_180 && - !data->display.is_atomic) + if (!igt_plane_has_rotation(plane, data->rotation)) return false; if (igt_plane_has_prop(plane, IGT_PLANE_ROTATION)) |