All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 03/16] tests/kms_plane_scaling: Use igt_rotation_90_or_270()
Date: Fri, 16 Jul 2021 17:44:29 +0300	[thread overview]
Message-ID: <20210716144442.31962-4-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20210716144442.31962-1-ville.syrjala@linux.intel.com>

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Replace the hand rolled 90/270 rotation check with
igt_rotation_90_or_270().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/kms_plane_scaling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 3f47733edad2..809463a71583 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -166,7 +166,7 @@ static bool can_rotate(data_t *d, unsigned format, uint64_t tiling,
 		return true;
 
 	if (intel_display_ver(d->devid) >= 13 &&
-		(rot == IGT_ROTATION_90 || rot == IGT_ROTATION_270))
+		igt_rotation_90_or_270(rot))
 		return false;
 
 	switch (format) {
-- 
2.31.1

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

  parent reply	other threads:[~2021-07-16 14:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-16 14:44 [igt-dev] [PATCH i-g-t 00/16] kms: Various cleanups and fixes Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 01/16] lib/kms: Add igt_rotation_90_or_270() Ville Syrjala
2021-07-19  4:44   ` Karthik B S
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 02/16] tests/kms_big_fb: Use igt_rotation_90_or_270() Ville Syrjala
2021-07-19  4:46   ` Karthik B S
2021-07-16 14:44 ` Ville Syrjala [this message]
2021-07-19  4:46   ` [igt-dev] [PATCH i-g-t 03/16] tests/kms_plane_scaling: " Karthik B S
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 04/16] tests/kms_rotation_crc: " Ville Syrjala
2021-07-19  4:48   ` Karthik B S
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 05/16] lib/kms: Add igt_plane_has_rotation() Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 06/16] tests/kms_rotation_crc: Use igt_plane_has_rotation() Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 07/16] tests/kms_plane_scaling: " Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 08/16] tests/kms_big_fb: " Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 09/16] tests/kms_big_fb: Use igt_has_drm_cap() Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 10/16] tests/kms_big_fb: Move batch creation into lower level functions Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 11/16] tests/kms_big_fb: Move format/modifier checks lower Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 12/16] tests/kms_big_fb: Nuke the stride/format overrides Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 13/16] tests/kms_big_fb: Nuke fliptab[] Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 14/16] tests/kms_big_fb: Check whether the rotation is supposed in the async flip test Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 15/16] tests/kms_plane: Abstract single vs. multiple crsc better Ville Syrjala
2021-07-16 14:44 ` [igt-dev] [PATCH i-g-t 16/16] tests/kms_plane: Use single colors during extended test Ville Syrjala
2021-07-16 15:38 ` [igt-dev] ✓ Fi.CI.BAT: success for kms: Various cleanups and fixes Patchwork
2021-07-16 19:22 ` [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=20210716144442.31962-4-ville.syrjala@linux.intel.com \
    --to=ville.syrjala@linux.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.