[PATCH i-g-t] tests/intel/kms_pm_rpm: Update modifier to linear for display version 30+
Jeevan B
jeevan.b at intel.com
Thu Jan 23 09:15:46 UTC 2025
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 at 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
More information about the igt-dev
mailing list