Merge pull request #344 from Snawoot/upd_20201117

Upd 20201117
This commit is contained in:
Snawoot 2020-11-17 20:44:14 +02:00 committed by GitHub
commit f384150f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 77 additions and 1 deletions

View File

@ -1,7 +1,7 @@
NVENC and NvFBC patches for Nvidia drivers 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. [NVENC patch](patch.sh) removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.
@ -121,12 +121,33 @@ 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.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.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.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 ## Synopsis
``` ```
# bash ./patch.sh -h # 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 SYNOPSIS
patch-fbc.sh [-s] [-r|-h|-c VERSION|-l] patch-fbc.sh [-s] [-r|-h|-c VERSION|-l]
@ -142,6 +163,7 @@ DESCRIPTION
-d VERSION Use VERSION driver version when looking for libraries -d VERSION Use VERSION driver version when looking for libraries
instead of using nvidia-smi to detect it. instead of using nvidia-smi to detect it.
``` ```
## Step-by-Step guide ## Step-by-Step guide

View File

@ -462,6 +462,12 @@
"version": "455.32.00", "version": "455.32.00",
"nvenc_patch": true, "nvenc_patch": true,
"nvfbc_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": { "example": {
@ -2190,6 +2196,15 @@
"patch64_url": "win7_x64/457.30/nvencodeapi64.1337", "patch64_url": "win7_x64/457.30/nvencodeapi64.1337",
"patch32_url": "win7_x64/457.30/nvencodeapi.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" "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"
} }
] ]
} }

View File

@ -92,6 +92,7 @@ declare -A patch_list=(
["455.28"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/' ["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.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.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=( declare -A object_list=(
@ -140,6 +141,7 @@ declare -A object_list=(
["455.28"]='libnvidia-fbc.so' ["455.28"]='libnvidia-fbc.so'
["455.32.00"]='libnvidia-fbc.so' ["455.32.00"]='libnvidia-fbc.so'
["455.38"]='libnvidia-fbc.so' ["455.38"]='libnvidia-fbc.so'
["455.45.01"]='libnvidia-fbc.so'
) )
check_version_supported () { check_version_supported () {

View File

@ -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.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.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.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=( declare -A object_list=(
@ -213,6 +214,7 @@ declare -A object_list=(
["455.28"]='libnvidia-encode.so' ["455.28"]='libnvidia-encode.so'
["455.32.00"]='libnvidia-encode.so' ["455.32.00"]='libnvidia-encode.so'
["455.38"]='libnvidia-encode.so' ["455.38"]='libnvidia-encode.so'
["455.45.01"]='libnvidia-encode.so'
) )
check_version_supported () { check_version_supported () {

View File

@ -59,6 +59,29 @@ DESCRIPTION
-c VERSION Check if version VERSION supported by this patch. -c VERSION Check if version VERSION supported by this patch.
Returns true exit code (0) if version is supported. Returns true exit code (0) if version is supported.
-l List supported driver versions -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.
``` ```

View File

@ -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.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.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 | [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 | | Product series | Version | x64 library patch | x86 library patch | Driver link |

View File

@ -0,0 +1,6 @@
>nvencodeapi.dll
000000000002B2D6:89->33
000000000002B2D7:45->C0
000000000002B2D8:08->89
000000000002B2D9:85->45
000000000002B2DA:C0->08

View File

@ -0,0 +1,5 @@
>nvencodeapi64.dll
000000000002FFBA:8B->33
000000000002FFBB:F0->C0
000000000002FFBC:85->8B
000000000002FFBD:C0->F0