Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Free scalers from previous run
@ 2023-03-16 15:12 Swati Sharma
  2023-03-16 18:39 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2023-03-16 22:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Swati Sharma @ 2023-03-16 15:12 UTC (permalink / raw)
  To: igt-dev

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@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-16 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 15:12 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Free scalers from previous run Swati Sharma
2023-03-16 18:39 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-03-16 22:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox