summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2014-06-06 11:51:01 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-06-09 16:49:29 -0400
commit081a53703128d8aa2368856bab289759c593ccff (patch)
treeb4cd739c89222ff11ca6900ae222a48d44172010
parent394d0c412626bd23eca1d936fae97b6dccbffcff (diff)
xv: workaround corruption
Keeping the video pixmaps persistent sometimes will lead to video corruption (shifted chroma planes) for unknown reasons. Possibly there are some subtle pixmap handling bugs in xv or other parts of the glamor code. To workaround, simply destroy pixmaps after they have been used once. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72821 Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor_xv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glamor_xv.c b/src/glamor_xv.c
index 6e62c3c..d090e7b 100644
--- a/src/glamor_xv.c
+++ b/src/glamor_xv.c
@@ -558,6 +558,7 @@ static int glamor_xv_put_image(ScrnInfoPtr pScrn,
port_priv->h = height;
port_priv->pDraw = pDrawable;
glamor_display_textured_video(port_priv);
+ glamor_xv_stop_video(pScrn, port_priv, TRUE);
return Success;
}