[igt-dev] [PATCH i-g-t v2 1/3] tests/kms_frontbuffer_tracking: Check compression state on all gens

Ville Syrjala ville.syrjala at linux.intel.com
Thu Sep 29 03:26:40 UTC 2022


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

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.

Acked-by: Jani Nikula <jani.nikula at intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 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



More information about the igt-dev mailing list