From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 868CA6E297 for ; Tue, 11 Feb 2020 02:31:32 +0000 (UTC) From: Imre Deak Date: Tue, 11 Feb 2020 04:31:02 +0200 Message-Id: <20200211023108.25369-2-imre.deak@intel.com> In-Reply-To: <20200211023108.25369-1-imre.deak@intel.com> References: <20200211023108.25369-1-imre.deak@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH v2 2/8] tests/kms_frontbuffer_tracking: Skip set tiling calls if not supported 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: Vanshidhar Konda List-ID: From: Vanshidhar Konda Skip the method that is setting tiling with invalid strides if the hardware does not support HW for tiling/de-tiling. v2: - Use gem_available_fences() to check for HW detiling. Cc: Matt Roper Signed-off-by: Vanshidhar Konda Signed-off-by: Imre Deak Reviewed-by: Matt Roper --- tests/kms_frontbuffer_tracking.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 9c2c3a5d..724f5d16 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -2833,7 +2833,8 @@ static void badstride_subtest(const struct test_mode *t) struct modeset_params *params = pick_params(t); int rc; - try_invalid_strides(); + if (gem_available_fences(drm.fd)) + try_invalid_strides(); prepare_subtest(t, NULL); -- 2.23.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev