nvidia-vaapi-driver/debian/env-scripts/nvidia-vaapi-env.sh

15 lines
334 B
Bash
Raw Normal View History

2023-03-03 16:27:01 +01:00
#! /bin/bash
# Check system for NVIDIA card and set vaapi env vars
nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia)
if [[ ! -z $nvkernmod ]]
then
export LIBVA_DRIVER_NAME=nvidia
export MOZ_DISABLE_RDD_SANDBOX=1
export NVD_BACKEND=direct
export EGL_PLATFORM=$XDG_SESSION_TYPE
fi