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

Mohammed Khajapasha
2020-02-12T19:06:54Z

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@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);