[i-g-t 11/43] tests/i915/kms_cdclk: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Mar 24 08:09:31 UTC 2023
Add XE driver support for kms tests.
TODO: Add support for xe specific debugfs
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/i915/kms_cdclk.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/i915/kms_cdclk.c b/tests/i915/kms_cdclk.c
index 23d9d3b02..25e5e459a 100644
--- a/tests/i915/kms_cdclk.c
+++ b/tests/i915/kms_cdclk.c
@@ -360,16 +360,18 @@ igt_main
data_t data = {};
igt_fixture {
- data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+ data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
igt_require(data.drm_fd >= 0);
data.debugfs_fd = igt_debugfs_dir(data.drm_fd);
igt_require(data.debugfs_fd);
kmstest_set_vt_graphics_mode();
+
+ igt_display_require(&data.display, data.drm_fd);
+ igt_display_require_output(&data.display);
+
data.devid = intel_get_drm_devid(data.drm_fd);
igt_require_f(hardware_supported(&data),
"Hardware doesn't support crawling/squashing.\n");
- igt_display_require(&data.display, data.drm_fd);
- igt_display_require_output(&data.display);
}
igt_describe("Plane scaling test to validate cdclk frequency change.");
--
2.40.0
More information about the Intel-gfx-trybot
mailing list