drm/sti: do not post HQVDP command if no update
authorFabien DESSENNE <fabien.dessenne@st.com>
Mon, 5 Dec 2016 15:09:33 +0000 (16:09 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 6 Jan 2017 14:12:03 +0000 (15:12 +0100)
commit97120776f7cd54c4d75f47d770f238674f8c8192
treea5aa9454b70d5f6ff1e7cd11233aa19639bf5522
parent49fb560a7bf5cd3d351c5a9ac945d9dc09b15d4e
drm/sti: do not post HQVDP command if no update

Do not process update requests with unmodified parameters.

Since the HQVDP command queue is limited to 2, we shall take care of
not posting unneeded commands, which would abusively fill the command
queue leading to frame update skip.
This typically happens when the driver is called with legacy
(non-atomic) IOCTL : in that case atomic_update() is called multiple
times with the same parameters.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_hqvdp.c