[igt-dev] [PATCH i-g-t 2/4] tests/kms_plane: Reduce the plane size 64x64

Ville Syrjala ville.syrjala at linux.intel.com
Thu Mar 28 17:57:25 UTC 2019


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

Reduce the plane size further to speed up the test. 64x64 is the
universal i915 minimum cursor size so we'll use that. And since
we choce wisely we'll make cursors use the reduced size as well.

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

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 143bc5e6f3b8..4007c894f87a 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -499,12 +499,12 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
 		 IGT_FORMAT_ARGS(format),
 		 kmstest_pipe_name(pipe), plane->index);
 
-	if (plane->type != DRM_PLANE_TYPE_CURSOR && data->display.is_atomic) {
+	if (data->display.is_atomic) {
 		struct igt_fb test_fb;
 		int ret;
 
-		igt_create_fb(data->drm_fd, 256, 256, format,
-				    LOCAL_DRM_FORMAT_MOD_NONE, &test_fb);
+		igt_create_fb(data->drm_fd, 64, 64, format,
+			      LOCAL_DRM_FORMAT_MOD_NONE, &test_fb);
 
 		igt_plane_set_fb(plane, &test_fb);
 
-- 
2.19.2



More information about the igt-dev mailing list