vl/dri3: support receiving new pixmap for front buffer
authorLeo Liu <leo.liu@amd.com>
Thu, 9 Jun 2016 16:53:54 +0000 (12:53 -0400)
committerLeo Liu <leo.liu@amd.com>
Fri, 10 Jun 2016 15:24:24 +0000 (11:24 -0400)
commit2ad443e4cc0a72b7d0b28195b5810cbf197961cb
tree91f859f31cf2e256d81a81ed32ec29acef164292
parent0ef8500aabb5430eae76919438fcf61020b7eb8e
vl/dri3: support receiving new pixmap for front buffer

With glx of gstreamer-vaapi, the temporary pixmap for front buffer gets
renewed in each frame, so when we receive a new pixmap, should get a new
front buffer for it.

This also fixes Totem player playback corruption.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/vl/vl_winsys_dri3.c