You are not logged in.

#1 2019-11-26 20:17:06

coredump
Member
Registered: 2018-08-09
Posts: 4

Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

Hello.

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?

Offline

#2 2019-11-26 21:03:58

dglt
Member
Registered: 2019-08-14
Posts: 82

Re: Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

do you have these installed?

libvdpau
lib32-libvdpau
lib32-libva-vdpau-driver

Offline

#3 2019-11-26 21:47:46

coredump
Member
Registered: 2018-08-09
Posts: 4

Re: Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

I had not, but I installed and tried again, still no success

$ __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

Offline

#4 2019-11-26 23:55:11

dglt
Member
Registered: 2019-08-14
Posts: 82

Re: Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

can you also post these

xrandr --listproviders
inxi -Gxxz

Offline

#5 2019-11-27 04:44:37

coredump
Member
Registered: 2018-08-09
Posts: 4

Re: Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

[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

Offline

#6 2019-11-27 16:33:12

dglt
Member
Registered: 2019-08-14
Posts: 82

Re: Offload VDPAU to Nvidia discrete on a intel/nvidia notebook

maybe give the nvidia forum/devtalk a look, it could be another one of the limitations of render offload but thats only speculation. if you switch to a prime setup and it works then that points to render-offload being the problem.

also, you shouldnt need DRI_PRIME=1, have you tried it like this?

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia vdpauinfo

Last edited by dglt (2019-11-27 16:33:50)

Offline

Board footer

Powered by FluxBB