diff options
author | Joseph Garvey <joseph1.garvey@intel.com> | 2017-11-22 15:05:55 -0800 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-12-12 11:42:38 +0200 |
commit | d242cd8f282f9f7d73b07e8f6f7d8bbfa9c1c875 (patch) | |
tree | 0ecc7f166c182af90cc05397fb799936dadbdaf0 /lib/igt_kms.h | |
parent | d0f996c2a8475b87549db9eb7b7783fca058a7f0 (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.h')
-rw-r--r-- | lib/igt_kms.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 2a480bf3..cfe646ae 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -281,8 +281,13 @@ typedef enum { IGT_ROTATION_90 = 1 << 1, IGT_ROTATION_180 = 1 << 2, IGT_ROTATION_270 = 1 << 3, + IGT_REFLECT_X = 1 << 4, + IGT_REFLECT_Y = 1 << 5, } igt_rotation_t; +#define IGT_ROTATION_MASK \ + (IGT_ROTATION_0 | IGT_ROTATION_90 | IGT_ROTATION_180 | IGT_ROTATION_270) + typedef struct { /*< private >*/ igt_pipe_t *pipe; |