This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-30 10:55:03 +03:00 committed by GitHub
parent c99c497b95
commit 937bead22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 6 deletions

2
debian/changelog vendored
View File

@ -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
View File

@ -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
View File

@ -0,0 +1,2 @@
# Enable X11 EGL in firefox in order for it to use nvidia-vaapi-driver
export MOZ_X11_EGL=1

View File

@ -6,9 +6,16 @@ nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLA
if [[ ! -z $nvkernmod ]]
then
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
View File

@ -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/