[igt-dev] [i-g-t V2 2/5] tests/kms_cursor_legacy: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Tue Apr 18 15:28:19 UTC 2023
Add XE driver support for kms tests.
V2: - Drop redundant check for i915 device
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
---
tests/kms_cursor_legacy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index 5f430090815..7df6a61257e 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -308,7 +308,7 @@ enum flip_test {
static bool cursor_slowpath(igt_display_t *display, enum flip_test mode)
{
/* Intel display 9 and newer will handle cursor movement as fastsets */
- if (is_i915_device(display->drm_fd) &&
+ if (is_intel_device(display->drm_fd) &&
intel_display_ver(intel_get_drm_devid(display->drm_fd)) >= 9)
return true;
@@ -1465,7 +1465,6 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
igt_output_t *output;
igt_plane_t *cursor;
- igt_require_intel(display->drm_fd);
ahnd = get_reloc_ahnd(display->drm_fd, 0);
if (atomic)
@@ -1708,6 +1707,7 @@ igt_main
igt_describe("this test perform a busy bo update followed by a cursor update");
igt_subtest_group {
igt_fixture {
+ igt_require_i915(display.drm_fd);
igt_require_pipe_crc(display.drm_fd);
igt_display_require_output(&display);
}
--
2.40.0
More information about the igt-dev
mailing list