From fd81235542579671af7c6ac70220db5516cb3b0f Mon Sep 17 00:00:00 2001 From: guihkx Date: Wed, 3 Aug 2022 13:47:06 -0300 Subject: [PATCH 1/3] linux: add patches for 470.141.03 --- README.md | 1 + drivers.json | 6 ++++++ patch-fbc.sh | 2 ++ patch.sh | 2 ++ 4 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 29bfa64..8bc6f68 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv | 470.94 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/470.94/NVIDIA-Linux-x86_64-470.94.run) | | 470.103.01 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/470.103.01/NVIDIA-Linux-x86_64-470.103.01.run) | | 470.129.06 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/470.129.06/NVIDIA-Linux-x86_64-470.129.06.run) | +| 470.141.03 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/470.141.03/NVIDIA-Linux-x86_64-470.141.03.run) | | 495.29.05 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/495.29.05/NVIDIA-Linux-x86_64-495.29.05.run) | | 495.44 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/495.44/NVIDIA-Linux-x86_64-495.44.run) | | 495.46 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/495.46/NVIDIA-Linux-x86_64-495.46.run) | diff --git a/drivers.json b/drivers.json index 0dd1d18..10d0c67 100644 --- a/drivers.json +++ b/drivers.json @@ -686,6 +686,12 @@ "nvfbc_patch": true, "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/470.129.06/NVIDIA-Linux-x86_64-470.129.06.run" }, + { + "version": "470.141.03", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/470.141.03/NVIDIA-Linux-x86_64-470.141.03.run" + }, { "version": "510.39.01", "nvenc_patch": true, diff --git a/patch-fbc.sh b/patch-fbc.sh index 1286f9f..927451b 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -135,6 +135,7 @@ declare -A patch_list=( ["470.94"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["470.103.01"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["470.129.06"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' + ["470.141.03"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["495.29.05"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["495.44"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["495.46"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' @@ -232,6 +233,7 @@ declare -A object_list=( ["470.94"]='libnvidia-fbc.so' ["470.103.01"]='libnvidia-fbc.so' ["470.129.06"]='libnvidia-fbc.so' + ["470.141.03"]='libnvidia-fbc.so' ["495.29.05"]='libnvidia-fbc.so' ["495.44"]='libnvidia-fbc.so' ["495.46"]='libnvidia-fbc.so' diff --git a/patch.sh b/patch.sh index 420beb4..eb6658f 100755 --- a/patch.sh +++ b/patch.sh @@ -174,6 +174,7 @@ declare -A patch_list=( ["470.94"]='s/\xe8\x25\x1C\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x1C\xff\xff\x29\xc0\x41\x89\xc4/g' ["470.103.01"]='s/\xe8\x25\x1C\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x1C\xff\xff\x29\xc0\x41\x89\xc4/g' ["470.129.06"]='s/\xe8\x25\x1C\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x1C\xff\xff\x29\xc0\x41\x89\xc4/g' + ["470.141.03"]='s/\xe8\x25\x1C\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x1C\xff\xff\x29\xc0\x41\x89\xc4/g' ["495.29.05"]='s/\xe8\x35\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["495.44"]='s/\xe8\x35\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["495.46"]='s/\xe8\x35\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' @@ -308,6 +309,7 @@ declare -A object_list=( ["470.94"]='libnvidia-encode.so' ["470.103.01"]='libnvidia-encode.so' ["470.129.06"]='libnvidia-encode.so' + ["470.141.03"]='libnvidia-encode.so' ["495.29.05"]='libnvidia-encode.so' ["495.44"]='libnvidia-encode.so' ["495.46"]='libnvidia-encode.so' From 3d8bd51d8541212a9c2c1ee8d315f9134fce2c10 Mon Sep 17 00:00:00 2001 From: Fabian R Date: Wed, 3 Aug 2022 18:51:30 +0200 Subject: [PATCH 2/3] linux: Added support for NVENC and NvFBC on driver version 510.85.02 --- README.md | 1 + drivers.json | 6 ++++++ patch-fbc.sh | 2 ++ patch.sh | 2 ++ 4 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 29bfa64..2d656ca 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv | 510.68.02 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.68.02/NVIDIA-Linux-x86_64-510.68.02.run) | | 510.73.05 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/510.73.05/NVIDIA-Linux-x86_64-510.73.05.run) | | 510.73.08 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.73.08/NVIDIA-Linux-x86_64-510.73.08.run) | +| 510.85.02 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.85.02/NVIDIA-Linux-x86_64-510.85.02.run) | | 515.43.04 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/515.43.04/NVIDIA-Linux-x86_64-515.43.04.run) | | 515.48.07 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/515.48.07/NVIDIA-Linux-x86_64-515.48.07.run) | | 515.57 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/515.57/NVIDIA-Linux-x86_64-515.57.run) | diff --git a/drivers.json b/drivers.json index 0dd1d18..5751185 100644 --- a/drivers.json +++ b/drivers.json @@ -746,6 +746,12 @@ "nvfbc_patch": true, "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/510.73.08/NVIDIA-Linux-x86_64-510.73.08.run" }, + { + "version": "510.85.02", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/510.85.02/NVIDIA-Linux-x86_64-510.85.02.run" + }, { "version": "515.57", "nvenc_patch": true, diff --git a/patch-fbc.sh b/patch-fbc.sh index 1286f9f..92b3bae 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -145,6 +145,7 @@ declare -A patch_list=( ["510.68.02"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["510.73.05"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["510.73.08"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' + ["510.85.02"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["515.43.04"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["515.48.07"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["515.57"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' @@ -242,6 +243,7 @@ declare -A object_list=( ["510.68.02"]='libnvidia-fbc.so' ["510.73.05"]='libnvidia-fbc.so' ["510.73.08"]='libnvidia-fbc.so' + ["510.85.02"]='libnvidia-fbc.so' ["515.43.04"]='libnvidia-fbc.so' ["515.48.07"]='libnvidia-fbc.so' ["515.57"]='libnvidia-fbc.so' diff --git a/patch.sh b/patch.sh index 420beb4..a698cde 100755 --- a/patch.sh +++ b/patch.sh @@ -184,6 +184,7 @@ declare -A patch_list=( ["510.68.02"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["510.73.05"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["510.73.08"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' + ["510.85.02"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["515.43.04"]='s/\xe8\xd5\x1e\xff\xff\x85\xc0\x41\x89\xc4/\xe8\xd5\x1e\xff\xff\x29\xc0\x41\x89\xc4/g' ["515.48.07"]='s/\xe8\xd5\x1e\xff\xff\x85\xc0\x41\x89\xc4/\xe8\xd5\x1e\xff\xff\x29\xc0\x41\x89\xc4/g' ["515.57"]='s/\xe8\xd5\x1e\xff\xff\x85\xc0\x41\x89\xc4/\xe8\xd5\x1e\xff\xff\x29\xc0\x41\x89\xc4/g' @@ -318,6 +319,7 @@ declare -A object_list=( ["510.68.02"]='libnvidia-encode.so' ["510.73.05"]='libnvidia-encode.so' ["510.73.08"]='libnvidia-encode.so' + ["510.85.02"]='libnvidia-encode.so' ["515.43.04"]='libnvidia-encode.so' ["515.48.07"]='libnvidia-encode.so' ["515.57"]='libnvidia-encode.so' From d5104b582b580f0928e87fbfbd77e7db7895231b Mon Sep 17 00:00:00 2001 From: reloxx13 Date: Tue, 9 Aug 2022 18:38:34 +0200 Subject: [PATCH 3/3] support for 516.94 driver --- drivers.json | 9 +++++++++ win/README.md | 5 +++-- win/win10_x64/516.94/nvencodeapi.1337 | 6 ++++++ win/win10_x64/516.94/nvencodeapi64.1337 | 5 +++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 win/win10_x64/516.94/nvencodeapi.1337 create mode 100644 win/win10_x64/516.94/nvencodeapi64.1337 diff --git a/drivers.json b/drivers.json index 13945dd..41aab42 100644 --- a/drivers.json +++ b/drivers.json @@ -3496,6 +3496,15 @@ "patch64_url": "win10_x64/516.79/nvencodeapi64.1337", "patch32_url": "win10_x64/516.79/nvencodeapi.1337", "driver_url": "https://international-gfe.download.nvidia.com/Windows/516.79hf/516.79-desktop-notebook-win10-win11-64bit-international-dch.hf.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "516.94", + "variant": "DCH", + "patch64_url": "win10_x64/516.94/nvencodeapi64.1337", + "patch32_url": "win10_x64/516.94/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/516.94/516.94-desktop-win10-win11-64bit-international-dch-whql.exe" } ] } diff --git a/win/README.md b/win/README.md index e98fd11..b3dcb59 100644 --- a/win/README.md +++ b/win/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Windows Nvidia drivers ================================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-516.79-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-472.84-blue.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-516.94-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-472.84-blue.svg) NVENC patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -49,7 +49,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv 5. Apply x86 library patch to corresponding file in `%WINDIR%\SysWOW64\` in the same way as previous one. - *If patching fails, close all applications using nvencodeapi.dll, such as OBS Studio, Plex or Discord.* -**Example:** for 64bit Windows 10 running driver version 516.79, use `win10_x64/516.79/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/516.79/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 516.94, use `win10_x64/516.94/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/516.94/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. If you experience issues with streaming software based on Nvidia streaming facilities (Nvidia Shield TV, Moonlight), you also have to import few registry values in order to workaround binary signature mismatch. See [**skip\_sig\_check** (clickable)](skip_sig_check) directory for instructions. @@ -191,6 +191,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 516.40 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.40/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.40/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/516.40/516.40-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 516.59 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.59/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.59/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/516.59/516.59-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 516.79 DCH (Hotfix) | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.79/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.79/nvencodeapi.1337) | [Driver link](https://international-gfe.download.nvidia.com/Windows/516.79hf/516.79-desktop-notebook-win10-win11-64bit-international-dch.hf.exe) | +| GeForce | 516.94 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.94/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/516.94/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/516.94/516.94-desktop-win10-win11-64bit-international-dch-whql.exe) | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/win10_x64/516.94/nvencodeapi.1337 b/win/win10_x64/516.94/nvencodeapi.1337 new file mode 100644 index 0000000..6b4ae8d --- /dev/null +++ b/win/win10_x64/516.94/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +0000000000042961:89->33 +0000000000042962:45->C0 +0000000000042963:08->89 +0000000000042964:85->45 +0000000000042965:C0->08 \ No newline at end of file diff --git a/win/win10_x64/516.94/nvencodeapi64.1337 b/win/win10_x64/516.94/nvencodeapi64.1337 new file mode 100644 index 0000000..544dfc9 --- /dev/null +++ b/win/win10_x64/516.94/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +0000000000049C00:8B->33 +0000000000049C01:F0->C0 +0000000000049C02:85->8B +0000000000049C03:C0->F0 \ No newline at end of file