summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/plane.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2018-03-15 04:00:24 +0300
committerThierry Reding <treding@nvidia.com>2018-03-15 17:56:46 +0300
commit48519232bea9230d1c5dbbb680d9257d4861bb4c (patch)
tree60cc7af723d06bb92c8787ae80f8d6071b0ebda5 /drivers/gpu/drm/tegra/plane.c
parent8a927d648c2ee20f2fd746d733c5cd76d0fbb0c1 (diff)
downloadlinux-48519232bea9230d1c5dbbb680d9257d4861bb4c.tar.xz
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: ebae8d07435a ("drm/tegra: dc: Implement legacy blending") Signed-off-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/gpu/drm/tegra/plane.c
index eddaa2f05ed6..94dac79ac3c9 100644
--- a/drivers/gpu/drm/tegra/plane.c
+++ b/drivers/gpu/drm/tegra/plane.c
@@ -334,9 +334,6 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra,
unsigned int zpos[2];
unsigned int i;
- for (i = 0; i < 3; i++)
- state->dependent[i] = false;
-
for (i = 0; i < 2; i++)
zpos[i] = 0;
@@ -350,6 +347,8 @@ void tegra_plane_check_dependent(struct tegra_plane *tegra,
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
* a format with an alpha component, mark this plane as being