[igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Free scalers from previous run

Swati Sharma swati2.sharma at intel.com
Thu Mar 16 15:12:27 UTC 2023


The planes_scaling_combo() tests were leaving scalers assigned
after running each sub-test.

To clean up the scalers from previous runs, we have to commit
after setting plane fb to NULL. This ensures that the scalers are
properly freed.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/kms_plane_scaling.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 3a6904afb..1e038fa43 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -695,6 +695,8 @@ __test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,
 	igt_plane_set_fb(p1, NULL);
 	igt_plane_set_fb(p2, NULL);
 
+	igt_display_commit(display);
+
 	igt_skip_on_f(ret == -EINVAL || ret == -ERANGE,
 		      "Scaling op not supported by driver\n");
 	igt_assert_eq(ret, 0);
-- 
2.25.1



More information about the igt-dev mailing list