From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id E99AE6E88F for ; Thu, 9 Sep 2021 15:31:02 +0000 (UTC) From: Ville Syrjala Date: Thu, 9 Sep 2021 18:30:39 +0300 Message-Id: <20210909153047.16729-4-ville.syrjala@linux.intel.com> In-Reply-To: <20210909153047.16729-1-ville.syrjala@linux.intel.com> References: <20210909153047.16729-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 03/11] tests/kms_plane_scaling: Use igt_plane_has_rotation() List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: From: Ville Syrjälä Replace the hand rolled gen check with igt_plane_has_rotation(). Signed-off-by: Ville Syrjälä --- tests/kms_plane_scaling.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 809463a71583..4c517a4326d7 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, -- 2.31.1