[igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Fix copy-paste error

Swati Sharma swati2.sharma at intel.com
Wed Mar 22 06:08:18 UTC 2023


This fixes downscaling factor 0.5 (2:1) tests which were
skipping before and were expected to pass since max downscaling
supported is 3:1
Even after these fixes, few tests still can skip because of
CDCLK limitations which is expected.

Reported-by: Luca Coelho <luciano.coelho at intel.com>
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/kms_plane_scaling.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 71586efba..8e988058d 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -130,7 +130,7 @@ const struct {
 	{
 		"Tests downscaling with rotation for 0.5 scaling factor.",
 		"plane-downscale-with-rotation-factor-0-5",
-		0.25,
+		0.5,
 		false,
 	},
 	{
@@ -1181,9 +1181,9 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 							drmModeModeInfo *mode = igt_output_get_mode(output);
 
 							test_scaler_with_modifier_pipe(&data,
-								get_width(mode, scaler_with_rotation_tests[index].sf),
-								get_height(mode, scaler_with_rotation_tests[index].sf),
-								scaler_with_rotation_tests[index].is_upscale,
+								get_width(mode, scaler_with_modifiers_tests[index].sf),
+								get_height(mode, scaler_with_modifiers_tests[index].sf),
+								scaler_with_modifiers_tests[index].is_upscale,
 								pipe, output);
 						}
 						break;
-- 
2.25.1



More information about the igt-dev mailing list