[igt-dev] [PATCH i-g-t 1/1] tests/kms_big_fb: Set plane position and framebuffer dimensions before commit

Mohammed Khajapasha mohammed.khajapasha at intel.com
Wed Feb 12 19:05:09 UTC 2020


Set the plane position and weight and height for small framebuffer
before committing it in for loop.

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha at intel.com>
---
 tests/kms_big_fb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c
index eb144da9..6ba96a99 100644
--- a/tests/kms_big_fb.c
+++ b/tests/kms_big_fb.c
@@ -286,6 +286,7 @@ static bool test_plane(data_t *data)
 		}
 
 		igt_plane_set_fb(plane, small_fb);
+		igt_plane_set_position(plane, 0, 0);
 		igt_plane_set_size(plane, data->width, data->height);
 
 		/*
@@ -318,6 +319,8 @@ static bool test_plane(data_t *data)
 		copy_pattern(data, small_fb, 0, 0, big_fb, x, y,
 			     small_fb->width, small_fb->height);
 
+		igt_fb_set_size(small_fb, plane, small_fb->width, small_fb->height);
+
 		igt_display_commit2(&data->display, data->display.is_atomic ?
 				    COMMIT_ATOMIC : COMMIT_UNIVERSAL);
 
-- 
2.24.1



More information about the igt-dev mailing list