render: don't deallocate surface storage of displayed frames.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 9 May 2014 12:53:30 +0000 (14:53 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 16 Jun 2014 03:53:35 +0000 (11:53 +0800)
commitaeef40157a7d3349ea8afc5dca0c198055027601
tree537f0c79f69a50c814fdea22758adc7d3ea34266
parentc173e3560dbbd9346cf34c6da9a6406c6c8089be
render: don't deallocate surface storage of displayed frames.

Keep the VA surface storage live until it is explicitly scheduled
for destruction through vaDestroySurfaces() interface. Otherwise,
subsequent vaPutSurface() calls would have no effect.

This fixes various use cases like: display of interlaced frames
that are not marked for reference, multiple rendering to Pixmap
for EXT_texture_from_pixmap and more precisely interlaced streams.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit a840e6403071d397a33e127e8058881a3ef50077)
src/i965_output_dri.c