Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_pm_rpm: Update modifier to linear for display version 30+
@ 2025-01-23  9:15 Jeevan B
  2025-01-23  9:39 ` ✗ GitLab.Pipeline: warning for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Jeevan B @ 2025-01-23  9:15 UTC (permalink / raw)
  To: igt-dev; +Cc: juha-pekka.heikkila, Jeevan B

On latest platform tile-X is no longer supported, So for display
version 30+ we can use linear tiling and tile-X for older platform.
This change accounts for the limitations of gem_set_tiling, which
no longer works on recent platforms and will not be supported on
Xe drivers.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/intel/kms_pm_rpm.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
index 990c50915..0f4da426b 100644
--- a/tests/intel/kms_pm_rpm.c
+++ b/tests/intel/kms_pm_rpm.c
@@ -1188,6 +1188,12 @@ static void cursor_subtest(bool dpms)
 	int rc;
 	struct igt_fb cursor_fb1, cursor_fb2, cursor_fb3;
 	uint32_t crtc_id;
+	uint64_t modifier;
+
+	if (intel_display_ver(intel_get_drm_devid(drm_fd)) >= 30)
+		modifier = DRM_FORMAT_MOD_LINEAR;
+	else
+		modifier = I915_FORMAT_MOD_X_TILED;
 
 	disable_all_screens_and_wait(&ms_data);
 
@@ -1199,7 +1205,7 @@ static void cursor_subtest(bool dpms)
 	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
 		      DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
 	igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
-		      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+		      modifier, &cursor_fb3);
 
 	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
 	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-24 16:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23  9:15 [PATCH i-g-t] tests/intel/kms_pm_rpm: Update modifier to linear for display version 30+ Jeevan B
2025-01-23  9:39 ` ✗ GitLab.Pipeline: warning for " Patchwork
2025-01-23 10:04 ` ✓ i915.CI.BAT: success " Patchwork
2025-01-23 10:51 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-23 14:56 ` [PATCH i-g-t] " Thasleem, Mohammed
2025-01-24 16:02   ` Juha-Pekka Heikkilä
2025-01-23 22:25 ` ✓ Xe.CI.Full: success for " Patchwork
2025-01-24  3:00 ` ✗ i915.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox