Commit 48519232 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

drm/tegra: plane: Correct legacy blending

Keep old 'dependent' state of unaffected planes, this way new state takes
into account current state of unaffected planes.

Fixes: ebae8d07 ("drm/tegra: dc: Implement legacy blending")
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 8a927d64
...@@ -334,9 +334,6 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra, ...@@ -334,9 +334,6 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra,
unsigned int zpos[2]; unsigned int zpos[2];
unsigned int i; unsigned int i;
for (i = 0; i < 3; i++)
state->dependent[i] = false;
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
zpos[i] = 0; zpos[i] = 0;
...@@ -350,6 +347,8 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra, ...@@ -350,6 +347,8 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra,
index = tegra_plane_get_overlap_index(tegra, p); index = tegra_plane_get_overlap_index(tegra, p);
state->dependent[index] = false;
/* /*
* If any of the other planes is on top of this plane and uses * If any of the other planes is on top of this plane and uses
* a format with an alpha component, mark this plane as being * a format with an alpha component, mark this plane as being
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment