[VDPAU] [PATCH] Add VDPAU_DRIVER_PATH support
Aaron Plattner
aplattner at nvidia.com
Thu Feb 20 12:26:05 PST 2014
On 02/20/2014 12:17 PM, Aaron Plattner wrote:
> On 02/06/2014 05:57 PM, Emil Velikov wrote:
>> 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.
>>
>> v2:
>> - Fix compilation issues.
>>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>
>> Hi Aaron,
>>
>> I've spent a bit of time pondering on your suggestion to control
>> the trace library using the same env variable.
>>
>> IMHO this will cause unnecessary complexity considering the
>> permutations between driver/tracer locations.
>>
>> My initial goal was to ease the use and testing of vdpau backends,
>> in order to avoid rebuilding libvdpau. As the trace library is part
>> of libvdpau (thus defeating the purpose of the whole exercise) I'm
>> planning to stick with my original goal.
>
> Thanks, that sounds good.
>
>> Cheers,
>> -Emil
>>
>> include/vdpau/vdpau_x11.h | 2 ++
>> src/vdpau_wrapper.c | 14 ++++++++++++--
>> 2 files changed, 14 insertions(+), 2 deletions(-)
[...]
>> -#define DRIVER_LIB_FORMAT "%slibvdpau_%s.so%s"
>> +#define DRIVER_LIB_FORMAT "%s/libvdpau_%s.so%s"
>
> Unfortunately, this breaks the fallback driver loading because it now searches for /libvdpau_nvidia.so instead of just /libvdpau_nvidia.so.
Er, that should read "just libvdpau_nvidia.so" without the slash, obviously.
--
Aaron
More information about the VDPAU
mailing list