diff options
author | Thierry Reding <treding@nvidia.com> | 2018-03-19 19:20:46 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-05-18 22:56:21 +0300 |
commit | 995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec (patch) | |
tree | a65253b7a7e110a7625fa1a5d64c60b02d954561 /drivers/gpu/drm/tegra/plane.h | |
parent | 4bd91a5b5dbb8b536208396c3d032cba8e3c3913 (diff) | |
download | linux-995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec.tar.xz |
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.h')
-rw-r--r-- | drivers/gpu/drm/tegra/plane.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/plane.h b/drivers/gpu/drm/tegra/plane.h index 7360ddfafee8..e79e6b4a8e0a 100644 --- a/drivers/gpu/drm/tegra/plane.h +++ b/drivers/gpu/drm/tegra/plane.h @@ -46,6 +46,8 @@ struct tegra_plane_state { u32 format; u32 swap; + bool bottom_up; + /* used for legacy blending support only */ struct tegra_plane_legacy_blending_state blending[2]; bool opaque; |