[igt-dev] [PATCH i-g-t 03/16] tests/kms_plane_scaling: Use igt_rotation_90_or_270()

Ville Syrjala ville.syrjala at linux.intel.com
Fri Jul 16 14:44:29 UTC 2021


From: Ville Syrjälä <ville.syrjala at 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 at 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



More information about the igt-dev mailing list