Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/kms_writeback: refresh to expose writeback output
@ 2024-05-13 21:30 Alex Hung
  2024-05-13 21:48 ` Abhinav Kumar
  2024-05-13 22:57 ` ✗ Fi.CI.BUILD: failure for tests/kms_writeback: refresh to expose writeback output (rev2) Patchwork
  0 siblings, 2 replies; 8+ messages in thread
From: Alex Hung @ 2024-05-13 21:30 UTC (permalink / raw)
  To: igt-dev, harry.wentland, hersenxs.wu; +Cc: Alex Hung

With dc2d7fb4f978, all kms_writeback subtests are skipped.

Refresh the outputs to grab all supported connectors,
the writeback output that is just enabled.

Fixes: dc2d7fb4f978 ("lib/igt_kms: move setting DRM_CLIENT_CAP_WRITEBACK_CONNECTORS to kms_writeback")
Signed-off-by: Alex Hung <alex.hung@amd.com>
---
 tests/kms_writeback.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c
index f89b2d62f..4c54f3b89 100644
--- a/tests/kms_writeback.c
+++ b/tests/kms_writeback.c
@@ -572,9 +572,11 @@ igt_main_args("b:c:f:dl", long_options, help_str, opt_handler, NULL)
 		igt_require(display.is_atomic);
 
 		ret = drmSetClientCap(display.drm_fd, DRM_CLIENT_CAP_WRITEBACK_CONNECTORS, 1);
-
 		igt_require_f(!ret, "error setting DRM_CLIENT_CAP_WRITEBACK_CONNECTORS\n");
 
+		/* Refresh the outputs to grab all supported connectors.*/
+		igt_display_reset_outputs(&display);
+
 		output = kms_writeback_get_output(&display);
 		igt_require(output);
 
-- 
2.34.1


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

end of thread, other threads:[~2024-05-13 22:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 21:30 [PATCH] tests/kms_writeback: refresh to expose writeback output Alex Hung
2024-05-13 21:48 ` Abhinav Kumar
2024-05-13 22:06   ` Alex Hung
2024-05-13 22:20     ` Abhinav Kumar
2024-05-13 22:32       ` Alex Hung
2024-05-13 22:37         ` Abhinav Kumar
2024-05-13 22:41           ` Alex Hung
2024-05-13 22:57 ` ✗ Fi.CI.BUILD: failure for tests/kms_writeback: refresh to expose writeback output (rev2) Patchwork

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