public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_big_fb: Skip 90/270 rotation on Display Ver >= 13
@ 2026-02-27  6:33 Pranay Samala
  2026-02-27  7:09 ` Ville Syrjälä
  2026-02-27 13:18 ` ✗ Fi.CI.BUILD: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Pranay Samala @ 2026-02-27  6:33 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, sameer.lattannavar, pranay.samala

From Display Ver 13, 90/270 hardware rotation no longer
supported. Skip these tests on affected platforms. Also move
plane capability checks to the outer loop to continue testing
other planes.

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/intel/kms_big_fb.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tests/intel/kms_big_fb.c b/tests/intel/kms_big_fb.c
index 66d7c5428..171b38602 100644
--- a/tests/intel/kms_big_fb.c
+++ b/tests/intel/kms_big_fb.c
@@ -172,6 +172,7 @@ typedef struct {
 	int hw_stride;
 	int max_hw_fb_width;
 	double planeclearrgb[3];
+	int disp_ver;
 } data_t;
 
 static struct intel_buf *init_buf(data_t *data,
@@ -422,12 +423,6 @@ static bool test_plane(data_t *data)
 		{ w, h, },
 	};
 
-	if (!igt_plane_has_format_mod(plane, data->format, data->modifier))
-		return false;
-
-	if (!igt_plane_has_rotation(plane, data->rotation))
-		return false;
-
 	if (igt_plane_has_prop(plane, IGT_PLANE_ROTATION))
 		igt_plane_set_rotation(plane, data->rotation);
 	igt_plane_set_position(plane, 0, 0);
@@ -570,6 +565,10 @@ static bool test_pipe(data_t *data)
 					  IGT_PIPE_CRC_SOURCE_AUTO);
 
 	for_each_plane_on_pipe(&data->display, data->crtc->pipe, data->plane) {
+		if (!igt_plane_has_rotation(data->plane, data->rotation))
+			continue;
+		if (!igt_plane_has_format_mod(data->plane, data->format, data->modifier))
+			continue;
 		ret = test_plane(data);
 		if (ret || run_in_simulation)
 			break;
@@ -688,6 +687,9 @@ static void test_scanout(data_t *data)
 	igt_crtc_t *crtc;
 	igt_output_t *output;
 
+	if (igt_rotation_90_or_270(data->rotation))
+		igt_require_f(data->disp_ver < 13, "90/270 rotation not supported by platform\n");
+
 	igt_require(data->format == DRM_FORMAT_C8 ||
 		    igt_fb_supported_format(data->format));
 
@@ -983,6 +985,7 @@ int igt_main()
 		igt_require(is_intel_device(data.drm_fd));
 
 		data.devid = intel_get_drm_devid(data.drm_fd);
+		data.disp_ver = intel_display_ver(data.devid);
 
 		kmstest_set_vt_graphics_mode();
 
-- 
2.34.1


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

end of thread, other threads:[~2026-02-27 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27  6:33 [PATCH i-g-t] tests/intel/kms_big_fb: Skip 90/270 rotation on Display Ver >= 13 Pranay Samala
2026-02-27  7:09 ` Ville Syrjälä
2026-02-27 13:18 ` ✗ Fi.CI.BUILD: failure for " Patchwork

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