summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/plane.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-03-19 17:20:46 +0100
committerThierry Reding <treding@nvidia.com>2018-05-18 21:56:21 +0200
commit995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec (patch)
treea65253b7a7e110a7625fa1a5d64c60b02d954561 /drivers/gpu/drm/tegra/plane.c
parent4bd91a5b5dbb8b536208396c3d032cba8e3c3913 (diff)
downloadlinux-stable-995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec.tar.gz
linux-stable-995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec.tar.bz2
linux-stable-995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec.zip
drm/tegra: dc: Support rotation property
Currently only the DRM_MODE_REFLECT_Y rotation is supported. The driver already supports reflection on the Y axis via a custom flag which is not very useful because it requires custom userspace. Add the standard rotation property that supports 0 degree rotation and Y axis reflection for primary and overlay planes to provide a better interface than the custom flag. v2: keep custom flag for ABI compatibility (Dmitry) Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Tested-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/plane.c')
-rw-r--r--drivers/gpu/drm/tegra/plane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/gpu/drm/tegra/plane.c
index 0406c2ef432c..d068e8aa3553 100644
--- a/drivers/gpu/drm/tegra/plane.c
+++ b/drivers/gpu/drm/tegra/plane.c
@@ -56,6 +56,7 @@ tegra_plane_atomic_duplicate_state(struct drm_plane *plane)
copy->tiling = state->tiling;
copy->format = state->format;
copy->swap = state->swap;
+ copy->bottom_up = state->bottom_up;
copy->opaque = state->opaque;
for (i = 0; i < 2; i++)