From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D5B910E6B6 for ; Tue, 25 Apr 2023 06:54:54 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 25 Apr 2023 12:19:32 +0530 Message-Id: <20230425064953.2121947-20-bhanuprakash.modem@intel.com> In-Reply-To: <20230425064953.2121947-1-bhanuprakash.modem@intel.com> References: <20230425064953.2121947-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V2 19/40] tests/i915/kms_flip_scaled_crc: Add XE support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add XE driver support for kms tests. Signed-off-by: Bhanuprakash Modem Reviewed-by: Ankit Nautiyal --- 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