Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id A893F10E26A for ; Wed, 28 Sep 2022 06:06:07 +0000 (UTC) From: Ville Syrjala To: igt-dev@lists.freedesktop.org Date: Wed, 28 Sep 2022 09:06:00 +0300 Message-Id: <20220928060601.12941-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 1/2] tests/kms_frontbuffer_tracking: Check compression state on all gens List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Ville Syrjälä The compression status has been available on all platforms since commit 3fd5d1ecae2d ("drm/i915: Implement fbc_status "Compressing" info for all platforms") in the kernel. Make use of it. Signed-off-by: Ville Syrjälä --- tests/i915/kms_frontbuffer_tracking.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c index 9518c706d87d..bdf718cf073a 100644 --- a/tests/i915/kms_frontbuffer_tracking.c +++ b/tests/i915/kms_frontbuffer_tracking.c @@ -1415,17 +1415,11 @@ static bool fbc_supported_on_chipset(void) static void setup_fbc(void) { - int devid = intel_get_drm_devid(drm.fd); - if (!fbc_supported_on_chipset()) { igt_info("Can't test FBC: not supported on this chipset\n"); return; } - /* Early Generations are not able to report compression status. */ - if (!AT_LEAST_GEN(devid, 7)) - opt.fbc_check_compression = false; - fbc.can_test = true; fbc_setup_last_action(); -- 2.35.1