[PATCH i-g-t v1 1/2] tests/kms_scaling_modes: Add informative messages for skipped scaling mode tests

Naladala Ramanaidu ramanaidu.naladala at intel.com
Thu Dec 5 12:25:27 UTC 2024


Add `igt_info` messages to provide more context when skipping outputs
that do not support scaling mode. Include `igt_info` messages to
indicate when invalid pipe/output combinations are skipped.

V1: Fix alignment issues. (Pranay)

Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
---
 tests/kms_scaling_modes.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/kms_scaling_modes.c b/tests/kms_scaling_modes.c
index 5fd34c4b2..e8aeb7409 100644
--- a/tests/kms_scaling_modes.c
+++ b/tests/kms_scaling_modes.c
@@ -117,8 +117,11 @@ static void test_scaling_mode(data_t *data, uint32_t flags)
 	for_each_pipe_with_valid_output(display, pipe, output) {
 		igt_display_reset(display);
 
-		if (!has_scaling_mode(output))
+		if (!has_scaling_mode(output)) {
+			igt_info("Output %s does not support scaling mode.\n",
+				igt_output_name(output));
 			continue;
+		}
 
 		igt_output_set_pipe(output, pipe);
 		if (!intel_pipe_output_combo_valid(display))
-- 
2.43.0



More information about the igt-dev mailing list