This commit is contained in:
parent
c99c497b95
commit
937bead22a
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
nvidia-vaapi-driver (10:0.0.10-100pika1) pikauwu; urgency=medium
|
||||
nvidia-vaapi-driver (10:0.0.10-100pika2) pikauwu; urgency=medium
|
||||
|
||||
* Update to pikauwu
|
||||
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -16,7 +16,7 @@ Rules-Requires-Root: no
|
||||
Package: nvidia-vaapi-driver
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, switcheroo-control
|
||||
Suggests: libcuda1
|
||||
Description: VA-API implementation that uses NVDEC as a backend
|
||||
nvidia-vaapi-driver is an VA-API(Video Acceleration API)
|
||||
|
2
debian/env-scripts/20-nvd-moz
vendored
Normal file
2
debian/env-scripts/20-nvd-moz
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Enable X11 EGL in firefox in order for it to use nvidia-vaapi-driver
|
||||
export MOZ_X11_EGL=1
|
15
debian/env-scripts/nvidia-vaapi-env.sh
vendored
15
debian/env-scripts/nvidia-vaapi-env.sh
vendored
@ -6,9 +6,16 @@ nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLA
|
||||
|
||||
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
|
||||
if switcherooctl list | awk 'ORS = $1 ~/Name/ ? " " : "\n"' | grep Default | grep yes | grep -E -i 'intel|amd|radeon|advanced' > /dev/null 2>&1
|
||||
then
|
||||
export MOZ_DISABLE_RDD_SANDBOX=1
|
||||
export NVD_BACKEND=direct
|
||||
export EGL_PLATFORM=$XDG_SESSION_TYPE
|
||||
else
|
||||
export LIBVA_DRIVER_NAME=nvidia
|
||||
export MOZ_DISABLE_RDD_SANDBOX=1
|
||||
export NVD_BACKEND=direct
|
||||
export EGL_PLATFORM=$XDG_SESSION_TYPE
|
||||
fi
|
||||
fi
|
||||
|
||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -9,3 +9,5 @@ override_dh_install:
|
||||
dh_install
|
||||
mkdir -p debian/nvidia-vaapi-driver/etc/profile.d
|
||||
cp debian/env-scripts/nvidia-vaapi-env.sh debian/nvidia-vaapi-driver/etc/profile.d/
|
||||
mkdir -p debian/nvidia-vaapi-driver/etc/X11/Xsession.d/
|
||||
cp debian/env-scripts/20-nvd-moz debian/nvidia-vaapi-driver/etc/X11/Xsession.d/
|
||||
|
Loading…
Reference in New Issue
Block a user