[i-g-t V2 26/44] tests/kms_cursor_edge_walk: Add XE support

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Mar 27 16:09:08 UTC 2023


Add XE driver support for kms tests.

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

diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c
index 5f423a18f..f5d490342 100644
--- a/tests/kms_cursor_edge_walk.c
+++ b/tests/kms_cursor_edge_walk.c
@@ -335,9 +335,6 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 
-		if (is_i915_device(data.drm_fd))
-			data.devid = intel_get_drm_devid(data.drm_fd);
-
 		ret = drmGetCap(data.drm_fd, DRM_CAP_CURSOR_WIDTH, &max_curw);
 		igt_assert(ret == 0 || errno == EINVAL);
 		/* Not making use of cursor_height since it is same as width, still reading */
@@ -351,6 +348,9 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 		igt_display_require(&data.display, data.drm_fd);
 		igt_display_require_output(&data.display);
 
+		if (is_intel_device(data.drm_fd))
+			data.devid = intel_get_drm_devid(data.drm_fd);
+
 		/* Get active pipes. */
 		last_pipe = 0;
 		for_each_pipe(&data.display, pipe)
-- 
2.40.0



More information about the Intel-gfx-trybot mailing list