summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/plane.h
diff options
context:
space:
mode:
authorDmitry Osipenko2018-05-04 16:39:59 +0200
committerThierry Reding2018-05-17 14:08:44 +0200
commit3dae08bc076b93487ed2df50bcfa892113e89d9d (patch)
treeddbb3a4b0de1dca357b921ff037aedaea72a59bf /drivers/gpu/drm/tegra/plane.h
parentdrm/tegra: dc: Enable plane scaling filters (diff)
downloadkernel-qcow2-linux-3dae08bc076b93487ed2df50bcfa892113e89d9d.tar.gz
kernel-qcow2-linux-3dae08bc076b93487ed2df50bcfa892113e89d9d.tar.xz
kernel-qcow2-linux-3dae08bc076b93487ed2df50bcfa892113e89d9d.zip
drm/tegra: plane: Implement zpos plane property for older Tegras
Older Tegra's do not support plane's Z position handling in hardware, but the hardware provides knobs to implement it in software. Signed-off-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.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tegra/plane.h b/drivers/gpu/drm/tegra/plane.h
index 6938719e7e5d..7360ddfafee8 100644
--- a/drivers/gpu/drm/tegra/plane.h
+++ b/drivers/gpu/drm/tegra/plane.h
@@ -34,6 +34,11 @@ static inline struct tegra_plane *to_tegra_plane(struct drm_plane *plane)
return container_of(plane, struct tegra_plane, base);
}
+struct tegra_plane_legacy_blending_state {
+ bool alpha;
+ bool top;
+};
+
struct tegra_plane_state {
struct drm_plane_state base;
@@ -42,8 +47,8 @@ struct tegra_plane_state {
u32 swap;
/* used for legacy blending support only */
+ struct tegra_plane_legacy_blending_state blending[2];
bool opaque;
- bool dependent[3];
};
static inline struct tegra_plane_state *
@@ -62,9 +67,7 @@ int tegra_plane_state_add(struct tegra_plane *plane,
int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap);
bool tegra_plane_format_is_yuv(unsigned int format, bool *planar);
-bool tegra_plane_format_has_alpha(unsigned int format);
-int tegra_plane_format_get_alpha(unsigned int opaque, unsigned int *alpha);
-void tegra_plane_check_dependent(struct tegra_plane *tegra,
- struct tegra_plane_state *state);
+int tegra_plane_setup_legacy_state(struct tegra_plane *tegra,
+ struct tegra_plane_state *state);
#endif /* TEGRA_PLANE_H */