You are not logged in.
I have set up everything for Intel hw acc of video enc and dec, this works perfectly fine. I was also able to setup prime properly and I am able to offload rendering to the nvidia dGPU, I confirmed this by monitoring and running for prime-run glxgears and I also confirmed that compute tasks hashcat -b --optimized-kernel-enable work as expected. However I seem to not be able to configure the chromium based browser brave to offload to discrete graphics, I was only able to achieve it for the intel iGpu (confirmed via intel_gpu_top). I set everything up according to HWACC Wiki, Chrome Wiki and PRIME Wiki, before changing anything I checked first if something works and I let it be. I have currently installed the intel-media-driver and the libva-nvidia-driver package from the AUR I tried almost all combinations of drivers listed in the HW ACC Wiki (yes even the libva-vdpau-driver-chromium) and also set the environment variables VDPAU_DRIVER=nvidia and LIBVA_DRIVER_NAME=nvidia nothing seemed to work. Thus I ask you for your wisdom. My browser startup config is:
~ ❯ cat .config/brave-flags.conf
--force-device-scale-factor=2
--force-dark-mode
--use-gl=egl
--use-vulkan
--ignore-gpu-blocklist
--enable-features=WebUIDarkMode
--enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization
--enable-zero-copy
--enable-oop-rasterization
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-gpu-memory-buffer-video-frames
#--enable-raw-draw
--disable-reading-from-canvas
--disable-sync-preferences
--disable-gpu-driver-bug-workarounds
--disable-software-rasterizer
--disable-features=UseOzonePlatform,UseChromeOSDirectVideoDecoderneofetch
/\ bob@archbob
/ \ -----------
/\ \ OS: Arch Linux x86_64
/ \ Host: Surface Book 3 124I:00037T:000M:0200000D:0B:05F:1C:05P:48S:01E:0Y:1K:0U:00R:2
/ ,, \ Kernel: 5.18.16-arch1-1-surface
/ | | -\ Uptime: 1 hour, 33 mins
/_-'' ''-_\ Packages: 1626 (pacman)
Shell: fish 3.5.1
Resolution: 3240x2160
WM: awesome
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: alacritty
CPU: Intel i7-1065G7 (8) @ 3.900GHz
GPU: NVIDIA Quadro RTX 3000 Mobile / Max-Q
GPU: Intel Iris Plus Graphics G7Offline
Maybe you need nvidia-vaapi-driver.
Offline
installing the nvidia-vaapi-driver didn't change anything sadly. I installed it via the AUR, I hope that this should be all if I didn't miss anything in the documentation.
Offline
installing the nvidia-vaapi-driver didn't change anything sadly. I installed it via the AUR, I hope that this should be all if I didn't miss anything in the documentation.
Sorry for that I don't actually own a nvidia (especially optimus one) laptop, and I indeed see an open issue related to this case...
Offline
I was able to use hardware acceleration by enabling the usage of vulkan. Using the --use-vulkan flag isnt enough according to the comments in googles code https://peter.sh/experiments/chromium-c … use-vulkan the features also needs to be enabled. However I am still not able to use the gpu without vulkan. The performance of video playback was slughish and the audio was out of sync (If somebody has any tips or tricks for resolving these issues pls hit me up). Hence I switch back to using the iGPU it was an interesting challenge to get the dGPU to work.
.config/brave-flags.conf
--force-device-scale-factor=2
--force-dark-mode
--use-gl=egl
--use-vulkan
--ignore-gpu-blocklist
--enable-features=WebUIDarkMode
--enable-features=Vulkan,VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization
--enable-zero-copy
--enable-unsafe-webgpu
--enable-oop-rasterization
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-gpu-memory-buffer-video-frames
#--enable-raw-draw
#--disable-reading-from-canvas
--disable-sync-preferences
--disable-gpu-driver-bug-workarounds
--disable-software-rasterizer
--disable-features=UseSkiaRenderer,UseOzonePlatform,UseChromeOSDirectVideoDecoderLast edited by xyhlon (2022-08-17 11:29:05)
Offline