From 3377a0c96e88a4a315dedcbb67f82abd2520dc63 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Tue, 17 Nov 2020 20:36:59 +0200 Subject: [PATCH 1/2] win: add nsd 457.30; linux: update README template --- README.md | 21 +++++++++++++++++ drivers.json | 9 ++++++++ .../templates/linux_readme_master.tmpl | 23 +++++++++++++++++++ win/README.md | 1 + win/win10_x64/nsd_457.30/nvencodeapi.1337 | 6 +++++ win/win10_x64/nsd_457.30/nvencodeapi64.1337 | 5 ++++ 6 files changed, 65 insertions(+) create mode 100644 win/win10_x64/nsd_457.30/nvencodeapi.1337 create mode 100644 win/win10_x64/nsd_457.30/nvencodeapi64.1337 diff --git a/README.md b/README.md index 20eaebe..b47a9d3 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,26 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv ``` # bash ./patch.sh -h +SYNOPSIS + patch.sh [-s] [-r|-h|-c VERSION|-l] + +DESCRIPTION + The patch for Nvidia drivers to remove NVENC session limit + + -s Silent mode (No output) + -r Rollback to original (Restore lib from backup) + -h Print this help message + -c VERSION Check if version VERSION supported by this patch. + Returns true exit code (0) if version is supported. + -l List supported driver versions + -d VERSION Use VERSION driver version when looking for libraries + instead of using nvidia-smi to detect it. + +``` + +``` +# bash ./patch-fbc.sh -h + SYNOPSIS patch-fbc.sh [-s] [-r|-h|-c VERSION|-l] @@ -142,6 +162,7 @@ DESCRIPTION -d VERSION Use VERSION driver version when looking for libraries instead of using nvidia-smi to detect it. + ``` ## Step-by-Step guide diff --git a/drivers.json b/drivers.json index b1cf0f1..1e57ff2 100644 --- a/drivers.json +++ b/drivers.json @@ -2190,6 +2190,15 @@ "patch64_url": "win7_x64/457.30/nvencodeapi64.1337", "patch32_url": "win7_x64/457.30/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/457.30/457.30-desktop-win8-win7-64bit-international-whql.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "457.30", + "variant": "Studio Driver", + "patch64_url": "win10_x64/nsd_457.30/nvencodeapi64.1337", + "patch32_url": "win10_x64/nsd_457.30/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/457.30/457.30-desktop-win10-64bit-international-nsd-whql.exe" } ] } diff --git a/tools/readme-autogen/templates/linux_readme_master.tmpl b/tools/readme-autogen/templates/linux_readme_master.tmpl index 80cf24c..4d2d331 100644 --- a/tools/readme-autogen/templates/linux_readme_master.tmpl +++ b/tools/readme-autogen/templates/linux_readme_master.tmpl @@ -59,6 +59,29 @@ DESCRIPTION -c VERSION Check if version VERSION supported by this patch. Returns true exit code (0) if version is supported. -l List supported driver versions + -d VERSION Use VERSION driver version when looking for libraries + instead of using nvidia-smi to detect it. + +``` + +``` +# bash ./patch-fbc.sh -h + +SYNOPSIS + patch-fbc.sh [-s] [-r|-h|-c VERSION|-l] + +DESCRIPTION + The patch for Nvidia drivers to allow FBC on consumer devices + + -s Silent mode (No output) + -r Rollback to original (Restore lib from backup) + -h Print this help message + -c VERSION Check if version VERSION supported by this patch. + Returns true exit code (0) if version is supported. + -l List supported driver versions + -d VERSION Use VERSION driver version when looking for libraries + instead of using nvidia-smi to detect it. + ``` diff --git a/win/README.md b/win/README.md index 998b0b7..5129c2a 100644 --- a/win/README.md +++ b/win/README.md @@ -147,6 +147,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 457.00 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.00/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.00/nvencodeapi.1337) | | | GeForce | 457.09 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.09/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.09/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/457.09/457.09-desktop-win10-64bit-international-whql.exe) | | GeForce | 457.30 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.30/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.30/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/457.30/457.30-desktop-win10-64bit-international-whql.exe) | +| GeForce | 457.30 Studio Driver | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_457.30/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_457.30/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/457.30/457.30-desktop-win10-64bit-international-nsd-whql.exe) | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/win10_x64/nsd_457.30/nvencodeapi.1337 b/win/win10_x64/nsd_457.30/nvencodeapi.1337 new file mode 100644 index 0000000..42290e9 --- /dev/null +++ b/win/win10_x64/nsd_457.30/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +000000000002B2D6:89->33 +000000000002B2D7:45->C0 +000000000002B2D8:08->89 +000000000002B2D9:85->45 +000000000002B2DA:C0->08 \ No newline at end of file diff --git a/win/win10_x64/nsd_457.30/nvencodeapi64.1337 b/win/win10_x64/nsd_457.30/nvencodeapi64.1337 new file mode 100644 index 0000000..9ad5a75 --- /dev/null +++ b/win/win10_x64/nsd_457.30/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000002FFBA:8B->33 +000000000002FFBB:F0->C0 +000000000002FFBC:85->8B +000000000002FFBD:C0->F0 \ No newline at end of file From 5574fb54fbf0033f653be2baa10afbd63546b1ff Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Tue, 17 Nov 2020 20:42:05 +0200 Subject: [PATCH 2/2] linux: add driver version 455.45.01 --- README.md | 3 ++- drivers.json | 6 ++++++ patch-fbc.sh | 2 ++ patch.sh | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b47a9d3..0d1b90c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Nvidia drivers ========================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-455.38-brightgreen.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-455.45.01-brightgreen.svg) [NVENC patch](patch.sh) removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -121,6 +121,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv | 455.28 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/455.28/NVIDIA-Linux-x86_64-455.28.run) | | 455.32.00 | YES | YES | | | 455.38 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/455.38/NVIDIA-Linux-x86_64-455.38.run) | +| 455.45.01 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/455.45.01/NVIDIA-Linux-x86_64-455.45.01.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 1e57ff2..a237b36 100644 --- a/drivers.json +++ b/drivers.json @@ -462,6 +462,12 @@ "version": "455.32.00", "nvenc_patch": true, "nvfbc_patch": true + }, + { + "version": "455.45.01", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/455.45.01/NVIDIA-Linux-x86_64-455.45.01.run" } ], "example": { diff --git a/patch-fbc.sh b/patch-fbc.sh index 38c2426..60883f4 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -92,6 +92,7 @@ declare -A patch_list=( ["455.28"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/' ["455.32.00"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/' ["455.38"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/' + ["455.45.01"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/' ) declare -A object_list=( @@ -140,6 +141,7 @@ declare -A object_list=( ["455.28"]='libnvidia-fbc.so' ["455.32.00"]='libnvidia-fbc.so' ["455.38"]='libnvidia-fbc.so' + ["455.45.01"]='libnvidia-fbc.so' ) check_version_supported () { diff --git a/patch.sh b/patch.sh index 0ee71ed..ea8763f 100755 --- a/patch.sh +++ b/patch.sh @@ -129,6 +129,7 @@ declare -A patch_list=( ["455.28"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["455.32.00"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["455.38"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' + ["455.45.01"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ) declare -A object_list=( @@ -213,6 +214,7 @@ declare -A object_list=( ["455.28"]='libnvidia-encode.so' ["455.32.00"]='libnvidia-encode.so' ["455.38"]='libnvidia-encode.so' + ["455.45.01"]='libnvidia-encode.so' ) check_version_supported () {