summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@armlinux.org.uk>2018-07-19 08:56:27 +0100
committerRussell King <rmk@armlinux.org.uk>2018-07-19 09:24:06 +0100
commite17e4d6db134c4be039e25fa9747882aa3091bb4 (patch)
tree012b6b79205c167bee4334d754c601369176e5ac
parent33c9d63e58e08205ea89a1d0d4875ff88e84aa1e (diff)
src: Xv: do not deallocate buffers if off-CRTC
Do not deallocate the Xv framebuffers if the drawable is not displayed on any CRTC. This avoids an allocate-free cycle each time the image is updated when (eg) all CRTCs are disabled due to monitor disconnection. Signed-off-by: Russell King <rmk@armlinux.org.uk>
-rw-r--r--src/armada_drm_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armada_drm_xv.c b/src/armada_drm_xv.c
index 87cc737..22e8700 100644
--- a/src/armada_drm_xv.c
+++ b/src/armada_drm_xv.c
@@ -864,7 +864,7 @@ static Bool armada_drm_check_plane(ScrnInfoPtr pScrn, struct drm_xv *drmxv,
if (!crtc) {
/* Not being displayed on a CRTC */
- armada_drm_plane_StopVideo(pScrn, drmxv, TRUE);
+ armada_drm_plane_StopVideo(pScrn, drmxv, FALSE);
return FALSE;
}