Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dmitry Osipenko and committed by
Thierry Reding
48519232 8a927d64

+2 -3
+2 -3
drivers/gpu/drm/tegra/plane.c
··· 334 334 unsigned int zpos[2]; 335 335 unsigned int i; 336 336 337 - for (i = 0; i < 3; i++) 338 - state->dependent[i] = false; 339 - 340 337 for (i = 0; i < 2; i++) 341 338 zpos[i] = 0; 342 339 ··· 346 349 continue; 347 350 348 351 index = tegra_plane_get_overlap_index(tegra, p); 352 + 353 + state->dependent[index] = false; 349 354 350 355 /* 351 356 * If any of the other planes is on top of this plane and uses