[igt-dev] [i-g-t V3 23/45] tests/i915/kms_flip_scaled_crc: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Wed Apr 26 11:47:03 UTC 2023
Add XE driver support for kms tests.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
---
tests/i915/kms_flip_scaled_crc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/i915/kms_flip_scaled_crc.c b/tests/i915/kms_flip_scaled_crc.c
index 7f7a59b93..f5dc430e3 100644
--- a/tests/i915/kms_flip_scaled_crc.c
+++ b/tests/i915/kms_flip_scaled_crc.c
@@ -623,7 +623,7 @@ igt_main
drmModeModeInfoPtr modetoset = NULL;
igt_fixture {
- data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+ data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
data.gen = intel_display_ver(intel_get_drm_devid(data.drm_fd));
igt_require(data.gen >= 9);
igt_display_require(&data.display, data.drm_fd);
@@ -644,6 +644,12 @@ igt_main
for (int index = 0; index < ARRAY_SIZE(flip_scenario_test); index++) {
igt_describe(flip_scenario_test[index].describe);
igt_subtest_with_dynamic(flip_scenario_test[index].name) {
+ /* No tiling support in XE. */
+ if (is_xe_device(data.drm_fd) &&
+ (flip_scenario_test[index].firstmodifier != DRM_FORMAT_MOD_LINEAR ||
+ flip_scenario_test[index].secondmodifier != DRM_FORMAT_MOD_LINEAR))
+ continue;
+
free_fbs(&data);
for_each_pipe(&data.display, pipe) {
bool found = false;
--
2.40.0
More information about the igt-dev
mailing list