From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA2E86E5BD for ; Thu, 9 Sep 2021 15:31:18 +0000 (UTC) From: Ville Syrjala Date: Thu, 9 Sep 2021 18:30:45 +0300 Message-Id: <20210909153047.16729-10-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 09/11] tests/kms_big_fb: Check whether the rotation is supposed in the async flip test 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ä Don't corrupt the plane state with some totally unsupported rotation. Doing so causes subseuqenct subtests to just fail on account of that bad rotation state leaking between the subtests. Signed-off-by: Ville Syrjälä --- tests/kms_big_fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c index 6be3062bd335..d38c24a70d2b 100644 --- a/tests/kms_big_fb.c +++ b/tests/kms_big_fb.c @@ -489,6 +489,7 @@ max_hw_stride_async_flip_test(data_t *data) primary = igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY); + igt_require(igt_plane_has_rotation(primary, data->rotation)); igt_plane_set_rotation(primary, data->rotation); igt_require_f(igt_display_try_commit2(&data->display, COMMIT_ATOMIC) == 0, -- 2.31.1