From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id B88D96E4CB for ; Wed, 17 Feb 2021 08:39:47 +0000 (UTC) From: Nidhi Gupta Date: Wed, 17 Feb 2021 14:18:51 +0530 Message-Id: <20210217084851.1366-1-nidhi1.gupta@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t] tests/kms_rotation_crc:added check for HW detailer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Nidhi Gupta List-ID: HW detiler not supported on platforms w/o aperture and this test is ideally not valid for DG2. But we should SKIP this test instead of getting invalid argument. Added Feature test macro to query the kernel for the global gpu aperture size. Aperture size should be greater than zero to support HW detiler, if not skip the test. Signed-off-by: Nidhi Gupta --- tests/kms_rotation_crc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index eb66260b..e47cb0b8 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -761,6 +761,7 @@ static void test_plane_rotation_exhaust_fences(data_t *data, int i; igt_require(igt_plane_has_prop(plane, IGT_PLANE_ROTATION)); + igt_require(gem_available_fences(display->drm_fd) > 0); prepare_crtc(data, output, pipe, plane, false); -- 2.26.2 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev