Skip to content

Commit

Permalink
drm/tegra: plane: Correct legacy blending
Browse files Browse the repository at this point in the history
Keep old 'dependent' state of unaffected planes, this way new state takes
into account current state of unaffected planes.

Fixes: ebae8d0 ("drm/tegra: dc: Implement legacy blending")
Signed-off-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
digetx authored and thierryreding committed Mar 15, 2018
1 parent 8a927d6 commit 4851923
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/tegra/plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 4851923

Please sign in to comment.