[igt-dev] [PATCH i-g-t 1/3] tests/kms_cursor_crc: Remove the max_w==max_h requirement

Ville Syrjala ville.syrjala at linux.intel.com
Wed Mar 24 18:17:33 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

The test works fine even if the max cursor size is not square.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_cursor_crc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 13d6156c9c77..7068475e04b1 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -798,9 +798,6 @@ igt_main
 		ret = drmGetCap(data.drm_fd, DRM_CAP_CURSOR_HEIGHT, &cursor_height);
 		igt_assert(ret == 0 || errno == EINVAL);
 
-		/* We assume width and height are same so max is assigned width */
-		igt_assert_eq(cursor_width, cursor_height);
-
 		kmstest_set_vt_graphics_mode();
 
 		igt_require_pipe_crc(data.drm_fd);
-- 
2.26.2



More information about the igt-dev mailing list