From 7b22a412ef2fc2e309ac9d4e391627189e0cd6b6 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Thu, 16 Jul 2020 18:03:50 +0300 Subject: [PATCH] various updates --- README.md | 1 + drivers.json | 41 +++++++++++++++++++ patch-fbc.sh | 2 + patch.sh | 2 + win/README.md | 8 +++- win/tools/autopatch/autopatch.py | 1 + win/win10_x64/451.74/nvencodeapi.1337 | 6 +++ win/win10_x64/451.74/nvencodeapi64.1337 | 5 +++ win/win10_x64/nsd_451.77/nvencodeapi.1337 | 6 +++ win/win10_x64/nsd_451.77/nvencodeapi64.1337 | 5 +++ win/win10_x64/quadro_451.77/nvencodeapi.1337 | 6 +++ .../quadro_451.77/nvencodeapi64.1337 | 5 +++ win/win7_x64/451.74/nvencodeapi.1337 | 5 +++ win/win7_x64/451.74/nvencodeapi64.1337 | 5 +++ 14 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 win/win10_x64/451.74/nvencodeapi.1337 create mode 100644 win/win10_x64/451.74/nvencodeapi64.1337 create mode 100644 win/win10_x64/nsd_451.77/nvencodeapi.1337 create mode 100644 win/win10_x64/nsd_451.77/nvencodeapi64.1337 create mode 100644 win/win10_x64/quadro_451.77/nvencodeapi.1337 create mode 100644 win/win10_x64/quadro_451.77/nvencodeapi64.1337 create mode 100644 win/win7_x64/451.74/nvencodeapi.1337 create mode 100644 win/win7_x64/451.74/nvencodeapi64.1337 diff --git a/README.md b/README.md index bfe08c0..b40a2d3 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ Requirements: | 450.36.06 | YES | YES | [Driver link](https://developer.download.nvidia.com/compute/cuda/11.0.1/local_installers/cuda_11.0.1_450.36.06_linux.run) | | 450.51 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/450.51/NVIDIA-Linux-x86_64-450.51.run) | | 450.51.05 | YES | YES | [Driver link](https://international.download.nvidia.com/tesla/450.51.05/NVIDIA-Linux-x86_64-450.51.05.run) | +| 450.56.01 | YES | YES | | | 450.57 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/450.57/NVIDIA-Linux-x86_64-450.57.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 427c351..cf61bd4 100644 --- a/drivers.json +++ b/drivers.json @@ -375,6 +375,11 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/450.57/NVIDIA-Linux-x86_64-450.57.run" + }, + { + "version": "450.56.01", + "nvenc_patch": true, + "nvfbc_patch": true } ], "example": { @@ -1725,6 +1730,42 @@ "patch64_url": "win7_x64/451.67/nvencodeapi64.1337", "patch32_url": "win7_x64/451.67/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/451.67/451.67-desktop-win8-win7-64bit-international-whql.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "451.74", + "variant": "Vulkan Beta", + "patch64_url": "win10_x64/451.74/nvencodeapi64.1337", + "patch32_url": "win10_x64/451.74/nvencodeapi.1337", + "driver_url": "" + }, + { + "os": "win7", + "product": "GeForce", + "version": "451.74", + "variant": "Vulkan Beta", + "patch64_url": "win7_x64/451.74/nvencodeapi64.1337", + "patch32_url": "win7_x64/451.74/nvencodeapi.1337", + "driver_url": "" + }, + { + "os": "win10", + "product": "GeForce", + "version": "451.77", + "variant": "Studio Driver", + "patch64_url": "win10_x64/nsd_451.77/nvencodeapi64.1337", + "patch32_url": "win10_x64/nsd_451.77/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/451.77/451.77-desktop-win10-64bit-international-nsd-whql.exe" + }, + { + "os": "win10", + "product": "Quadro", + "version": "451.77", + "variant": "", + "patch64_url": "win10_x64/quadro_451.77/nvencodeapi64.1337", + "patch32_url": "win10_x64/quadro_451.77/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/Quadro_Certified/451.77/451.77-quadro-desktop-notebook-win10-64bit-international-whql.exe" } ] } diff --git a/patch-fbc.sh b/patch-fbc.sh index 57c05c2..50bca76 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -72,6 +72,7 @@ declare -A patch_list=( ["450.36.06"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' ["450.51"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' ["450.51.05"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' + ["450.56.01"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' ["450.57"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' ) @@ -105,6 +106,7 @@ declare -A object_list=( ["450.36.06"]='libnvidia-fbc.so' ["450.51"]='libnvidia-fbc.so' ["450.51.05"]='libnvidia-fbc.so' + ["450.56.01"]='libnvidia-fbc.so' ["450.57"]='libnvidia-fbc.so' ) diff --git a/patch.sh b/patch.sh index 243c116..fd23d07 100755 --- a/patch.sh +++ b/patch.sh @@ -109,6 +109,7 @@ declare -A patch_list=( ["450.36.06"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["450.51"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["450.51.05"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' + ["450.56.01"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["450.57"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ) @@ -177,6 +178,7 @@ declare -A object_list=( ["450.36.06"]='libnvidia-encode.so' ["450.51"]='libnvidia-encode.so' ["450.51.05"]='libnvidia-encode.so' + ["450.56.01"]='libnvidia-encode.so' ["450.57"]='libnvidia-encode.so' ) diff --git a/win/README.md b/win/README.md index f0b1796..ac178f7 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-451.67-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-451.48-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-451.77-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-451.77-blue.svg) --- @@ -45,7 +45,7 @@ Requirements: 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 451.67, use `win10_x64/451.67/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/451.67/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 451.77, use `win10_x64/451.77/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/451.77/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. @@ -120,6 +120,8 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 451.48 Studio Driver | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.48/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.48/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.48/451.48-desktop-win10-64bit-international-nsd-whql.exe) | | GeForce | 451.52 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.52/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.52/nvencodeapi.1337) | | | GeForce | 451.67 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.67/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.67/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.67/451.67-desktop-win10-64bit-international-whql.exe) | +| GeForce | 451.74 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.74/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.74/nvencodeapi.1337) | | +| GeForce | 451.77 Studio Driver | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.77/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.77/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.77/451.77-desktop-win10-64bit-international-nsd-whql.exe) | | Product series | Version | x64 library patch | x86 library patch | Driver link | @@ -147,6 +149,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | Quadro | 442.74 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_442.74/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_442.74/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/Quadro_Certified/442.74/442.74-quadro-desktop-notebook-win10-64bit-international-whql.exe) | | Quadro | 442.92 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_442.92/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_442.92/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/Quadro_Certified/442.92/442.92-quadro-desktop-notebook-win10-64bit-international-whql.exe) | | Quadro | 451.48 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_451.48/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_451.48/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/Quadro_Certified/451.48/451.48-quadro-desktop-notebook-win10-64bit-international-whql.exe) | +| Quadro | 451.77 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_451.77/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_451.77/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/Quadro_Certified/451.77/451.77-quadro-desktop-notebook-win10-64bit-international-whql.exe) | ### Windows 7, Windows 8, Windows 8.1 drivers @@ -185,6 +188,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 446.14 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/446.14/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/446.14/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/446.14/446.14-desktop-win8-win7-64bit-international-whql.exe) | | GeForce | 451.48 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.48/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.48/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.48/451.48-desktop-win8-win7-64bit-international-whql.exe) | | GeForce | 451.67 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.67/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.67/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.67/451.67-desktop-win8-win7-64bit-international-whql.exe) | +| GeForce | 451.74 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.74/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/451.74/nvencodeapi.1337) | | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/tools/autopatch/autopatch.py b/win/tools/autopatch/autopatch.py index 58aa6a6..90f2e36 100755 --- a/win/tools/autopatch/autopatch.py +++ b/win/tools/autopatch/autopatch.py @@ -213,6 +213,7 @@ def patch_flow(installer_file, search, replacement, target, target_name, patch_n "100": "quadro_", "300": "", "301": "nsd_", + "303": "", # DCH } installer_name = os.path.basename(installer_file).lower() if 'winserv2008' in installer_name: diff --git a/win/win10_x64/451.74/nvencodeapi.1337 b/win/win10_x64/451.74/nvencodeapi.1337 new file mode 100644 index 0000000..d889e25 --- /dev/null +++ b/win/win10_x64/451.74/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +000000000002B0F6:89->33 +000000000002B0F7:45->C0 +000000000002B0F8:08->89 +000000000002B0F9:85->45 +000000000002B0FA:C0->08 \ No newline at end of file diff --git a/win/win10_x64/451.74/nvencodeapi64.1337 b/win/win10_x64/451.74/nvencodeapi64.1337 new file mode 100644 index 0000000..d3d3885 --- /dev/null +++ b/win/win10_x64/451.74/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000002FB3A:8B->33 +000000000002FB3B:F0->C0 +000000000002FB3C:85->8B +000000000002FB3D:C0->F0 \ No newline at end of file diff --git a/win/win10_x64/nsd_451.77/nvencodeapi.1337 b/win/win10_x64/nsd_451.77/nvencodeapi.1337 new file mode 100644 index 0000000..d889e25 --- /dev/null +++ b/win/win10_x64/nsd_451.77/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +000000000002B0F6:89->33 +000000000002B0F7:45->C0 +000000000002B0F8:08->89 +000000000002B0F9:85->45 +000000000002B0FA:C0->08 \ No newline at end of file diff --git a/win/win10_x64/nsd_451.77/nvencodeapi64.1337 b/win/win10_x64/nsd_451.77/nvencodeapi64.1337 new file mode 100644 index 0000000..d3d3885 --- /dev/null +++ b/win/win10_x64/nsd_451.77/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000002FB3A:8B->33 +000000000002FB3B:F0->C0 +000000000002FB3C:85->8B +000000000002FB3D:C0->F0 \ No newline at end of file diff --git a/win/win10_x64/quadro_451.77/nvencodeapi.1337 b/win/win10_x64/quadro_451.77/nvencodeapi.1337 new file mode 100644 index 0000000..d889e25 --- /dev/null +++ b/win/win10_x64/quadro_451.77/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +000000000002B0F6:89->33 +000000000002B0F7:45->C0 +000000000002B0F8:08->89 +000000000002B0F9:85->45 +000000000002B0FA:C0->08 \ No newline at end of file diff --git a/win/win10_x64/quadro_451.77/nvencodeapi64.1337 b/win/win10_x64/quadro_451.77/nvencodeapi64.1337 new file mode 100644 index 0000000..d3d3885 --- /dev/null +++ b/win/win10_x64/quadro_451.77/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000002FB3A:8B->33 +000000000002FB3B:F0->C0 +000000000002FB3C:85->8B +000000000002FB3D:C0->F0 \ No newline at end of file diff --git a/win/win7_x64/451.74/nvencodeapi.1337 b/win/win7_x64/451.74/nvencodeapi.1337 new file mode 100644 index 0000000..9bde198 --- /dev/null +++ b/win/win7_x64/451.74/nvencodeapi.1337 @@ -0,0 +1,5 @@ +>nvencodeapi.dll +0000000000023157:8B->33 +0000000000023158:D8->C0 +0000000000023159:85->8B +000000000002315A:DB->D8 \ No newline at end of file diff --git a/win/win7_x64/451.74/nvencodeapi64.1337 b/win/win7_x64/451.74/nvencodeapi64.1337 new file mode 100644 index 0000000..da7aa5d --- /dev/null +++ b/win/win7_x64/451.74/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +00000000000279E0:8B->33 +00000000000279E1:F0->C0 +00000000000279E2:85->8B +00000000000279E3:C0->F0 \ No newline at end of file