[i-g-t 14/43] tests/i915/kms_flip_scaled_crc: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Mar 24 08:09:34 UTC 2023
Add XE driver support for kms tests.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem 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..8d46a4d3e 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);
@@ -642,6 +642,12 @@ igt_main
igt_describe("Tests scaler using default and nearest neighbor plane scaling filters");
for (int index = 0; index < ARRAY_SIZE(flip_scenario_test); index++) {
+ /* 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;
+
igt_describe(flip_scenario_test[index].describe);
igt_subtest_with_dynamic(flip_scenario_test[index].name) {
free_fbs(&data);
--
2.40.0
More information about the Intel-gfx-trybot
mailing list