plugins: enable direct rendering with envvar
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 8 Dec 2016 17:51:54 +0000 (18:51 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 12 Apr 2017 18:39:06 +0000 (20:39 +0200)
commit24af97a7d106c1ba7cd1fe607e427f728ab9cf9c
tree374a32b34cd50319afc858e74c068a8ec50f6e85
parentebca86dcc7fc9b54632f6e0a398caa7516f40659
plugins: enable direct rendering with envvar

Direct rendering (use vaDeriveImage rather than vaPutImage) has better
performance in some Intel platforms (Haswell, for example) but in others
(Skylake) is the opposite.

In order to have some control, the patch enables the direct rendering
through the environment variable GST_VAAPI_ENABLE_DIRECT_RENDERING.

Also it seems to generating some problems with gallium/radeon backend.
See bug #779642.

https://bugzilla.gnome.org/show_bug.cgi?id=775848
gst/vaapi/gstvaapipluginbase.c
gst/vaapi/gstvaapipluginbase.h