drm/sti: fix dynamic z-ordering
authorVincent Abriou <vincent.abriou@st.com>
Fri, 31 Jul 2015 09:31:38 +0000 (11:31 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 3 Aug 2015 12:24:54 +0000 (14:24 +0200)
commitbf60b29f8e811c9593dcabaa4d25e412f9e10b73
treeeff43087da5209e28f416d586a358732c56f04f4
parent53bdcf5f026c565e605ff4ced9178f85d48f69c5
drm/sti: fix dynamic z-ordering

Apply the plane depth when the plane is updated.
If the depth is different from the previous plane update,
the register controlling the plane depth is cleaned and updated
with the new depth.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_drm_plane.c
drivers/gpu/drm/sti/sti_mixer.c
drivers/gpu/drm/sti/sti_mixer.h