All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [v4 i-g-t 10/14] tests/kms_cursor_edge_walk: Reset the state before exiting the test
Date: Tue,  4 May 2021 06:13:09 +0530	[thread overview]
Message-ID: <20210504004313.28804-11-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20210504004313.28804-1-bhanuprakash.modem@intel.com>

Before starting the next subtest, clean up the states to default
values, those are assumed by other tests.

Cc: Imre Deak <imre.deak@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_cursor_edge_walk.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c
index 69662afec..d1d8a9143 100644
--- a/tests/kms_cursor_edge_walk.c
+++ b/tests/kms_cursor_edge_walk.c
@@ -225,6 +225,7 @@ static void cleanup_crtc(data_t *data)
 
 	igt_remove_fb(data->drm_fd, &data->primary_fb);
 	igt_remove_fb(data->drm_fd, &data->fb);
+	igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
 }
 
 static void prepare_crtc(data_t *data)
@@ -268,6 +269,8 @@ static void test_crtc(data_t *data, unsigned int edges)
 	create_cursor_fb(data, data->curw, data->curh);
 
 	test_edges(data, edges);
+
+	cleanup_crtc(data);
 }
 
 static int opt_handler(int opt, int opt_index, void *_data)
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2021-05-03 16:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04  0:42 [igt-dev] [v4 i-g-t 00/14] Fix mode selection for 2x tests Bhanuprakash Modem
2021-05-03 17:41 ` [igt-dev] ✓ Fi.CI.BAT: success for Fix mode selection for 2x tests (rev4) Patchwork
2021-05-03 21:57 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 01/14] lib/igt_kms: helper to override the mode on all connectors Bhanuprakash Modem
2021-05-05 11:04   ` Nautiyal, Ankit K
2021-05-07 12:37     ` Nautiyal, Ankit K
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 02/14] tests/kms_frontbuffer_tracking: Fix mode selection for 2x tests Bhanuprakash Modem
2021-05-07 12:46   ` Nautiyal, Ankit K
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 03/14] tests/kms_cursor_legacy: " Bhanuprakash Modem
2021-05-07 13:09   ` Nautiyal, Ankit K
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 04/14] tests/debugfs_test: Fix mode selection for MST Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 05/14] tests/kms_content_protection: Fix mode selection for 2x tests Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 06/14] tests/kms_plane_scaling: " Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 07/14] tests/kms_atomic_transition: " Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 08/14] tests/kms_plane: Reset the state before exiting the test Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 09/14] tests/kms_plane_alpha_blend: " Bhanuprakash Modem
2021-05-04  0:43 ` Bhanuprakash Modem [this message]
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 11/14] tests/kms_plane_lowres: " Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 12/14] tests/kms_plane_cursor: " Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 13/14] tests/kms_flip_scaled_crc: " Bhanuprakash Modem
2021-05-04  0:43 ` [igt-dev] [v4 i-g-t 14/14] tests/kms_vblank: " Bhanuprakash Modem

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=20210504004313.28804-11-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.