Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format
@ 2024-12-05  6:00 Jeevan B
  2024-12-05  6:35 ` ✗ i915.CI.BAT: failure for tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format (rev3) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jeevan B @ 2024-12-05  6:00 UTC (permalink / raw)
  To: igt-dev; +Cc: swati2.sharma, rodrigo.vivi, Jeevan B

Updated the cursor_fb3 framebuffer creation in the cursor subtest
function to use a supported tiling format, either X-tile or linear,
for supported platforms.

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

diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
index 990c50915..283911afb 100644
--- a/tests/intel/kms_pm_rpm.c
+++ b/tests/intel/kms_pm_rpm.c
@@ -1198,8 +1198,13 @@ static void cursor_subtest(bool dpms)
 		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
 	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);
+	if (igt_display_has_format_mod(&ms_data.display, DRM_FORMAT_XRGB8888,
+				      I915_FORMAT_MOD_X_TILED))
+		igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+			      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+	else
+		igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+			      DRM_FORMAT_MOD_LINEAR, &cursor_fb3);
 
 	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
 	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format
@ 2024-12-05  5:46 Jeevan B
  0 siblings, 0 replies; 6+ messages in thread
From: Jeevan B @ 2024-12-05  5:46 UTC (permalink / raw)
  To: igt-dev; +Cc: swati2.sharma, rodrigo.vivi, Jeevan B

Updated the cursor_fb3 framebuffer creation in the cursor subtest
function to use a supported tiling format, either X-tile or linear,
for supported platforms.

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

diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
index 990c50915..af8976ad5 100644
--- a/tests/intel/kms_pm_rpm.c
+++ b/tests/intel/kms_pm_rpm.c
@@ -1198,8 +1198,13 @@ static void cursor_subtest(bool dpms)
 		      DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
 	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);
+	if(igt_display_has_format_mod(&ms_data.display, DRM_FORMAT_XRGB8888,
+				      I915_FORMAT_MOD_X_TILED))
+		igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+			      I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+	else
+		 igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+			       DRM_FORMAT_MOD_LINEAR, &cursor_fb3);
 
 	fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
 	fill_igt_fb(&cursor_fb2, 0xFF00FF00);
-- 
2.25.1


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

end of thread, other threads:[~2024-12-05 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05  6:00 [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format Jeevan B
2024-12-05  6:35 ` ✗ i915.CI.BAT: failure for tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format (rev3) Patchwork
2024-12-05  6:39 ` ✓ Xe.CI.BAT: success " Patchwork
2024-12-05  9:20 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-05 11:35 ` [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format Juha-Pekka Heikkilä
  -- strict thread matches above, loose matches on Subject: below --
2024-12-05  5:46 Jeevan B

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