All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH igt] tests/kms_bw: Skip unsupported modes
@ 2022-07-09 16:23 Rob Clark
  2022-07-09 16:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Rob Clark @ 2022-07-09 16:23 UTC (permalink / raw)
  To: igt-dev; +Cc: Rob Clark

From: Rob Clark <robdclark@chromium.org>

Signed-off-by: Rob Clark <robdclark@chromium.org>
---
 tests/kms_bw.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index a4553cde..7bb1332e 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -146,6 +146,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
 	igt_crc_t zero, captured[IGT_MAX_PIPES];
 	int i = 0, num_pipes = 0;
 	enum pipe p;
+	int ret;
 
 	/* Cannot use igt_display_get_n_pipes() due to fused pipes on i915 where they do
 	 * not give the numver of valid crtcs and always return IGT_MAX_PIPES */
@@ -175,6 +176,12 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
 		igt_plane_set_fb(data->primary[i], &buffer[i]);
 	}
 
+	ret = igt_display_try_commit_atomic(display,
+					    DRM_MODE_ATOMIC_ALLOW_MODESET |
+					    DRM_MODE_ATOMIC_TEST_ONLY,
+					    NULL);
+	igt_skip_on_f(ret != 0, "Unsupported mode\n");
+
 	igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
 
 	for (i = 0; i <= pipe; i++) {
-- 
2.36.1

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

end of thread, other threads:[~2022-07-27 17:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-09 16:23 [igt-dev] [PATCH igt] tests/kms_bw: Skip unsupported modes Rob Clark
2022-07-09 16:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-09 18:03 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-27  0:05 ` [igt-dev] [PATCH igt] " Jessica Zhang
2022-07-27 16:34   ` Jessica Zhang
2022-07-27  0:55 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_bw: Skip unsupported modes (rev2) Patchwork
2022-07-27  2:09 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_bw: Skip unsupported modes (rev3) Patchwork
2022-07-27  3:21 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-27 16:11 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_bw: Skip unsupported modes (rev4) Patchwork
2022-07-27 17:48 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.