Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Free scalers from previous run
Date: Thu, 16 Mar 2023 20:42:27 +0530	[thread overview]
Message-ID: <20230316151227.29301-1-swati2.sharma@intel.com> (raw)

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

             reply	other threads:[~2023-03-16 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-16 15:12 Swati Sharma [this message]
2023-03-16 18:39 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: Free scalers from previous run Patchwork
2023-03-16 22:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230316151227.29301-1-swati2.sharma@intel.com \
    --to=swati2.sharma@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox