[PATCH v1 4/7] tests/intel/kms_dirtyfb: Enable the tests support variations based on the WAs

Mohammed Thasleem mohammed.thasleem at intel.com
Tue Jun 10 17:42:41 UTC 2025


This update stops skipping fbc-* tests support variations based on the WAs.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
 tests/intel/kms_dirtyfb.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index a5707c5b1..e587042b3 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -49,6 +49,7 @@ IGT_TEST_DESCRIPTION("Test the DIRTYFB ioctl is working properly with "
 #endif
 #define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE)
 #endif
+#define WA_FBC_DISABLED "16023588340"
 
 typedef struct {
 	int drm_fd, devid;
@@ -381,8 +382,9 @@ igt_main
 					data.mode = igt_output_get_mode(data.output);
 
 					/* FBC disabled: Wa_16023588340 */
-					igt_skip_on_f((IS_BATTLEMAGE(data.devid) && data.feature == FEATURE_FBC),
-						       "FBC isn't supported on BMG\n");
+					igt_skip_on_f(data.feature == FEATURE_FBC &&
+						      !intel_is_fbc_supported(data.drm_fd, WA_FBC_DISABLED),
+						      "WA has disabled FBC on BMG\n");
 
 					/* FBC Disp_ver 8 and below supports only I915_FORMAT_MOD_X_TILED */
 					if (data.feature == FEATURE_FBC &&
-- 
2.34.1



More information about the igt-dev mailing list