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] [v6 i-g-t 09/14] tests/kms_plane_alpha_blend: Reset the state before exiting the test
Date: Wed, 12 May 2021 22:35:31 +0530	[thread overview]
Message-ID: <20210512170536.4778-10-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20210512170536.4778-1-bhanuprakash.modem@intel.com>

Before starting the next subtest, clean up the states to default
values, those are assumed by other tests. This patch will also fix
few redundant checks.

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_plane_alpha_blend.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index 5e80ae36e..a37cb27c7 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -237,8 +237,6 @@ static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe)
 	}
 
 	igt_plane_set_fb(primary, &data->black_fb);
-	/* reset alpha property to default */
-	reset_alpha(display, pipe);
 }
 
 static void basic_alpha(data_t *data, enum pipe pipe, igt_plane_t *plane)
@@ -507,6 +505,9 @@ static void run_test_on_pipe_planes(data_t *data, enum pipe pipe, bool blend,
 		igt_plane_set_fb(plane, NULL);
 	}
 
+	igt_output_set_pipe(output, PIPE_NONE);
+	igt_display_commit2(display, COMMIT_ATOMIC);
+
 	igt_require_f(found, "No planes with %s property found\n",
 		      blend ? "pixel blending mode" : "alpha");
 	igt_require_f(multiply, "Multiplied (plane x pixel) alpha not available\n");
-- 
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-12  9:16 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12 17:05 [igt-dev] [v6 i-g-t 00/14] Fix mode selection for 2x tests Bhanuprakash Modem
2021-05-12 12:11 ` [igt-dev] ✗ Fi.CI.BAT: failure for Fix mode selection for 2x tests (rev6) Patchwork
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 01/14] lib/igt_kms: helper to override the mode on all connectors Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 02/14] tests/kms_frontbuffer_tracking: Fix mode selection for 2x tests Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 03/14] tests/kms_cursor_legacy: " Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 04/14] tests/debugfs_test: " Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 05/14] tests/kms_content_protection: " Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 06/14] tests/kms_plane_scaling: " Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 07/14] tests/kms_atomic_transition: " Bhanuprakash Modem
2021-05-12 10:39   ` Nautiyal, Ankit K
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 08/14] tests/kms_plane: Reset the state before exiting the test Bhanuprakash Modem
2021-05-19  5:40   ` Nautiyal, Ankit K
2021-05-12 17:05 ` Bhanuprakash Modem [this message]
2021-05-19  6:50   ` [igt-dev] [v6 i-g-t 09/14] tests/kms_plane_alpha_blend: " Nautiyal, Ankit K
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 10/14] tests/kms_cursor_edge_walk: " Bhanuprakash Modem
2021-05-19  5:50   ` Nautiyal, Ankit K
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 11/14] tests/kms_plane_lowres: " Bhanuprakash Modem
2021-05-19  7:01   ` Nautiyal, Ankit K
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 12/14] tests/kms_plane_cursor: " Bhanuprakash Modem
2021-05-19  6:44   ` Nautiyal, Ankit K
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 13/14] tests/kms_flip_scaled_crc: " Bhanuprakash Modem
2021-05-19  6:42   ` Nautiyal, Ankit K
2021-05-19 15:30   ` [igt-dev] [v7 i-g-t 6/7] " Bhanuprakash Modem
2021-05-19 15:36     ` [igt-dev] [v8 i-g-t 13/14] " Bhanuprakash Modem
2021-05-12 17:05 ` [igt-dev] [v6 i-g-t 14/14] tests/kms_vblank: " Bhanuprakash Modem
2021-05-19  6:24   ` Nautiyal, Ankit K
2021-05-19  9:56 ` [igt-dev] ✗ Fi.CI.BAT: failure for Fix mode selection for 2x tests (rev8) Patchwork
2021-05-19  9:56 ` 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=20210512170536.4778-10-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.