summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorJoseph Garvey <joseph1.garvey@intel.com>2017-11-22 15:05:55 -0800
committerPetri Latvala <petri.latvala@intel.com>2017-12-12 11:42:38 +0200
commitd242cd8f282f9f7d73b07e8f6f7d8bbfa9c1c875 (patch)
tree0ecc7f166c182af90cc05397fb799936dadbdaf0 /lib/igt_kms.c
parentd0f996c2a8475b87549db9eb7b7783fca058a7f0 (diff)
igt/kms_rotation_crc: Add horizontal flip subtest.
Test that horizontal flip works with supported rotations. Includes a fix for the unrotated fb which was not being positioned correctly with portrait and landscape rectangles. v2:(from Anusha) - Change 180 degree rotation to follow the rest, use igt_swap(), make flip variable a bool. Format the patch correctly (Ville, Petri Latvala) v3: (From Anusha) - Correct the name of subtests in order to avoid duplication of names (Arek) Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com> Signed-off-by: Joseph Garvey <joseph1.garvey@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 223dbe4c..1242324e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -3392,7 +3392,7 @@ void igt_fb_set_size(struct igt_fb *fb, igt_plane_t *plane,
static const char *rotation_name(igt_rotation_t rotation)
{
- switch (rotation) {
+ switch (rotation & IGT_ROTATION_MASK) {
case IGT_ROTATION_0:
return "0°";
case IGT_ROTATION_90: