[igt-dev] [i-g-t 4/5] tests/kms_force_connector_basic: Add XE support

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Mar 20 10:00:16 UTC 2023


Add XE driver support for kms tests.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_force_connector_basic.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/kms_force_connector_basic.c b/tests/kms_force_connector_basic.c
index 4ff1efe3b..6a13fe4ed 100644
--- a/tests/kms_force_connector_basic.c
+++ b/tests/kms_force_connector_basic.c
@@ -53,7 +53,9 @@ static void reset_connectors(void)
 		drmModeFreeConnector(connector);
 	}
 
-	igt_set_module_param_int(drm_fd, "load_detect_test", 0);
+	/* FIXME: load_detect_test is not found in XE. */
+	if (is_i915_device(drm_fd))
+		igt_set_module_param_int(drm_fd, "load_detect_test", 0);
 
 	close(drm_fd);
 }
-- 
2.40.0



More information about the igt-dev mailing list