plugins: enable memory maps for read & write with direct-rendering.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 08:33:55 +0000 (10:33 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 16:30:06 +0000 (18:30 +0200)
commit77b2d884520f8d5de7f5d77545f2373da002fd30
tree6ef9513cb26f88a0669841736c5ea8a38d17662e
parent847e3efb4dd6e29e90ba2897a5fd029f4d67cb50
plugins: enable memory maps for read & write with direct-rendering.

Enable read and write mappings only if direct-rendering is supported.
Otherwise, this means that we may need to download data from the VA
surface first for correctness, even if the VA surface doesn't need to
be read at all. i.e. sometimes, READWRITE mappings are meant for
surfaces that are written to first, and read afterwards for further
processing.

https://bugzilla.gnome.org/show_bug.cgi?id=704078
gst/vaapi/gstvaapivideomemory.c