diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-07-16 15:34:33 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-09-21 18:30:20 +0300 |
commit | 1941007d724de2f4deeea7eaab4fa3cb2dcc5acf (patch) | |
tree | 91b4da91dbb0999a4fd7649ff4be6154840ca51d /tests/kms_plane_scaling.c | |
parent | 643ba7417eabb732a6e10288fcd0e5010370b28e (diff) |
tests/kms_plane_scaling: Use igt_plane_has_rotation()
Replace the hand rolled gen check with igt_plane_has_rotation().
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/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 809463a7..4c517a43 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -165,10 +165,6 @@ static bool can_rotate(data_t *d, unsigned format, uint64_t tiling, if (!is_i915_device(d->drm_fd)) return true; - if (intel_display_ver(d->devid) >= 13 && - igt_rotation_90_or_270(rot)) - return false; - switch (format) { case DRM_FORMAT_RGB565: if (intel_display_ver(d->devid) >= 11) @@ -272,6 +268,7 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe, if (test_format(d, &tested_formats, format) && igt_plane_has_format_mod(plane, format, tiling) && + igt_plane_has_rotation(plane, rot) && can_rotate(d, format, tiling, rot) && can_scale(d, format)) check_scaling_pipe_plane_rot(d, plane, format, |