trace: fix Coverity dead code warnings

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
init_config: remove unused local variable 'ret'

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Don't leak the vdpau_wrapper.cfg file pointer

init_config opens vdpau_wrapper.cfg and reads its contents, but never closes it.
This causes a file descriptor leak if libvdpau is unloaded and reloaded.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Andy Ritger <aritger@nvidia.com>
Reviewed-by: Josep Torra <josep@fluendo.com>
vdpau: add prime support at connection setup

This just ports the code from the mesa glx setup into vdpau,
this just picks the correct driver to load on the client side,

at least for gallium/vl code we need another similiar change
inside the driver code to pick the correct drm device.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Tested-by: Martin Peres <martin.peres@ensi-bourges.fr>
Tested-by: Hohahiu <rakothedin@gmail.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67283
Make init_config and init_fixes static

Fixes -Wmissing-prototypes warnings.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
trace: delete unused _vdp_cap_dump_point

Nothing actually uses VdpPoint, so this tracing function was never called.  I
left the VdpPoint type in vdpau.h for now, just in case anyone actually uses it
themselves.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Bump version to 0.7

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
trace: remove trailing whitespace

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Fix incorrect VdpPictureInfo typedef.

VdpPictureInfo should not be a pointer, otherwise the
VdpDecoderRender function signature asks for a pointer to a pointer.
But it really does expect a pointer directly to e.g. VdpPictureInfoH264.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Tested-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Add VDPAU_DRIVER_PATH support

Allow the user to specify the location of the backend driver,
via the VDPAU_DRIVER_PATH environment variable. This allows
easier testing of VDPAU backends without the need to rebuild
libvdpau.

Inspired by LIBGL_DRIVERS_PATH from mesa.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Bump version to 0.8

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Autotools
Autotools / Bump Version