[igt-dev] [PATCH i-g-t 03/16] tests/kms_plane_scaling: Use igt_rotation_90_or_270()
Karthik B S
karthik.b.s at intel.com
Mon Jul 19 04:46:56 UTC 2021
On 7/16/2021 8:14 PM, Ville Syrjala wrote:
> 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>
Reviewed-by: Karthik B S <karthik.b.s at 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) {
More information about the igt-dev
mailing list