From: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: stanislav.lisovskiy@intel.com, ville.syrjala@intel.com,
martin.peres@intel.com, juha-pekka.heikkila@intel.com
Subject: [igt-dev] [PATCH i-g-t v9 1/3] igt/tests: Remove redundant alpha retry
Date: Wed, 10 Apr 2019 14:32:03 +0300 [thread overview]
Message-ID: <20190410113205.3486-2-stanislav.lisovskiy@intel.com> (raw)
In-Reply-To: <20190410113205.3486-1-stanislav.lisovskiy@intel.com>
Using igt_plane_has_format_mod allows to save
time not doing redundant retry, knowing if
plane supports alpha beforehand.
v2: Remove unneeded assertion also.
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
tests/kms_atomic_transition.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 18f73317..6f16a928 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -232,6 +232,9 @@ static void setup_parms(igt_display_t *display, enum pipe pipe,
parms[i].height = cursor_height;
parms[i].mask = 1 << 1;
} else {
+ if (!n_overlays)
+ alpha = igt_plane_has_format_mod(plane,
+ DRM_FORMAT_ARGB8888, LOCAL_DRM_FORMAT_MOD_NONE);
parms[i].fb = sprite_fb;
parms[i].mask = 1 << 2;
@@ -272,7 +275,6 @@ static void setup_parms(igt_display_t *display, enum pipe pipe,
* Pre gen9 not all sizes are supported, find the biggest possible
* size that can be enabled on all sprite planes.
*/
-retry:
prev_w = sprite_width = cursor_width;
prev_h = sprite_height = cursor_height;
@@ -290,16 +292,6 @@ retry:
igt_assert(!is_atomic_check_failure_errno(ret));
if (is_atomic_check_plane_size_errno(ret)) {
- if (cursor_width == sprite_width &&
- cursor_height == sprite_height) {
- igt_assert_f(alpha,
- "Cannot configure the test with all sprite planes enabled\n");
-
- /* retry once with XRGB format. */
- alpha = false;
- goto retry;
- }
-
sprite_width = prev_w;
sprite_height = prev_h;
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-04-10 11:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 11:32 [igt-dev] [PATCH i-g-t v9 0/3] kms_atomic_transition improvements Stanislav Lisovskiy
2019-04-10 11:32 ` Stanislav Lisovskiy [this message]
2019-04-10 11:32 ` [igt-dev] [PATCH i-g-t v9 2/3] igt/tests/kms_atomic_transition: Skip transition, if no changes done Stanislav Lisovskiy
2019-04-10 11:32 ` [igt-dev] [PATCH i-g-t v9 3/3] igt/tests/kms_atomic_transition: Tolerate if can't have all planes Stanislav Lisovskiy
2019-04-10 15:06 ` Maarten Lankhorst
2019-04-11 8:39 ` Maarten Lankhorst
2019-04-11 9:07 ` Lisovskiy, Stanislav
2019-04-10 12:21 ` [igt-dev] ✓ Fi.CI.BAT: success for kms_atomic_transition improvements (rev17) Patchwork
2019-04-10 16:33 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20190410113205.3486-2-stanislav.lisovskiy@intel.com \
--to=stanislav.lisovskiy@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juha-pekka.heikkila@intel.com \
--cc=martin.peres@intel.com \
--cc=ville.syrjala@intel.com \
/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