[i-g-t V2 14/44] tests/i915/kms_flip_scaled_crc: Add XE support
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Mar 27 16:08:56 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 | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/tests/i915/kms_flip_scaled_crc.c b/tests/i915/kms_flip_scaled_crc.c
index 7f7a59b93..0bc1c2c46 100644
--- a/tests/i915/kms_flip_scaled_crc.c
+++ b/tests/i915/kms_flip_scaled_crc.c
@@ -623,13 +623,15 @@ igt_main
drmModeModeInfoPtr modetoset = NULL;
igt_fixture {
- data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
- data.gen = intel_display_ver(intel_get_drm_devid(data.drm_fd));
- igt_require(data.gen >= 9);
+ data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
+ kmstest_set_vt_graphics_mode();
+
igt_display_require(&data.display, data.drm_fd);
igt_require(data.display.is_atomic);
igt_require_pipe_crc(data.drm_fd);
- kmstest_set_vt_graphics_mode();
+
+ data.gen = intel_display_ver(intel_get_drm_devid(data.drm_fd));
+ igt_require(data.gen >= 9);
if (data.gen < 11) {
data.attemptmodewidth = 640;
@@ -642,6 +644,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