[igt-dev] [PATCH i-g-t v5] tests/kms_concurrent: Fix regression in test_resolution_with_output

Nidhi Gupta nidhi1.gupta at intel.com
Thu Jul 21 11:37:11 UTC 2022


Use hdisplay to check the resolution of the connector
instead of vdisplay. This fixes the regression caused
by the commit 14ad49f5b6ed.

Fixes: 14ad49f5b6ed (tests/kms_concurrent: Skip the subtest if the resolution is not supported)
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
---
 tests/kms_concurrent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index d4536e3b..6f8ffd4a 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -252,7 +252,7 @@ get_lowres_mode(data_t *data, const drmModeModeInfo *mode_default,
 			return igt_memdup(mode, sizeof(*mode));
 	}
 
-	igt_skip_on_f(mode_default->vdisplay < 1024, "No suitable resolution was found\n");
+	igt_skip_on_f(mode_default->hdisplay < 1024, "No suitable resolution was found\n");
 	return igt_std_1024_mode_get(igt_output_preferred_vrefresh(output));
 }
 
-- 
2.26.2



More information about the igt-dev mailing list