also, you shouldnt need DRI_PRIME=1, have you tried it like this?
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia vdpauinfo
[I] ➜ inxi -Gxxz
Graphics: Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] vendor: Dell driver: nvidia v: 440.31 bus ID: 01:00.0
chip ID: 10de:1c8c
Display: x11 server: X.Org 1.20.6 driver: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa
compositor: gnome-shell tty: N/A
OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 19.2.6 compat-v: 3.0
direct render: Yes
~
[I] ➜ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x258 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0
]]>xrandr --listproviders
inxi -Gxxz
$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia DRI_PRIME=1 VDPAU_DRIVER=nvidia vdpauinfo
display: :0 screen: 0
Error creating VDPAU device: 1
but the offload works ok
$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo |grep 'renderer string'
OpenGL renderer string: GeForce GTX 1050 Ti with Max-Q Design/PCIe/SSE2
libvdpau
lib32-libvdpau
lib32-libva-vdpau-driver
I followed the instructions on https://wiki.archlinux.org/index.php/PRIME and the NVIDIA install, and I got glxinfo to work using the discrete GPU.
I haven't been able to make VDPAU to work that way tho, even exporting the VDPAU and PRIME environment variables.
Has anyone got that to work?
]]>