[i-g-t V2 34/44] tests/kms_invalid_mode: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Mar 27 16:09:16 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/kms_invalid_mode.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index 86f529e88..bace5010a 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -213,15 +213,16 @@ test_output(data_t *data)
igt_remove_fb(data->drm_fd, &fb);
}
-static int i915_max_dotclock(data_t *data)
+static int intel_max_dotclock(data_t *data)
{
char buf[4096];
char *s;
int max_dotclock = 0;
- if (!is_i915_device(data->drm_fd))
+ if (!is_intel_device(data->drm_fd))
return 0;
+ /* TODO: Add XE support? */
igt_debugfs_read(data->drm_fd, "i915_frequency_info", buf);
s = strstr(buf, "Max pixel clock frequency:");
igt_assert(s);
@@ -293,7 +294,7 @@ igt_main
data.res = drmModeGetResources(data.drm_fd);
igt_assert(data.res);
- data.max_dotclock = i915_max_dotclock(&data);
+ data.max_dotclock = intel_max_dotclock(&data);
igt_info("Max dotclock: %d kHz\n", data.max_dotclock);
}
--
2.40.0
More information about the Intel-gfx-trybot
mailing list