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
|
* Update to pikauwu
|
||||||
|
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -16,7 +16,7 @@ Rules-Requires-Root: no
|
|||||||
Package: nvidia-vaapi-driver
|
Package: nvidia-vaapi-driver
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
Depends: ${misc:Depends}, ${shlibs:Depends}, switcheroo-control
|
||||||
Suggests: libcuda1
|
Suggests: libcuda1
|
||||||
Description: VA-API implementation that uses NVDEC as a backend
|
Description: VA-API implementation that uses NVDEC as a backend
|
||||||
nvidia-vaapi-driver is an VA-API(Video Acceleration API)
|
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
|
7
debian/env-scripts/nvidia-vaapi-env.sh
vendored
7
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 ]]
|
if [[ ! -z $nvkernmod ]]
|
||||||
then
|
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 LIBVA_DRIVER_NAME=nvidia
|
||||||
export MOZ_DISABLE_RDD_SANDBOX=1
|
export MOZ_DISABLE_RDD_SANDBOX=1
|
||||||
export NVD_BACKEND=direct
|
export NVD_BACKEND=direct
|
||||||
export EGL_PLATFORM=$XDG_SESSION_TYPE
|
export EGL_PLATFORM=$XDG_SESSION_TYPE
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -9,3 +9,5 @@ override_dh_install:
|
|||||||
dh_install
|
dh_install
|
||||||
mkdir -p debian/nvidia-vaapi-driver/etc/profile.d
|
mkdir -p debian/nvidia-vaapi-driver/etc/profile.d
|
||||||
cp debian/env-scripts/nvidia-vaapi-env.sh 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