From 0ea7227035a016d211c487de5387278bc967d6c2 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Tue, 22 Oct 2019 18:35:15 +0300 Subject: [PATCH 1/3] patches on their way --- win/tools/autopatch/autopatch.py | 4 ++-- win/win10_x64/440.97/nvcuvid.1337 | 3 +++ win/win10_x64/quadro_440.97/nvcuvid.1337 | 3 +++ win/win7_x64/440.97/nvcuvid.1337 | 3 +++ win/win7_x64/quadro_440.97/nvcuvid.1337 | 3 +++ win/ws2012_x64/quadro_440.97/nvcuvid.1337 | 3 +++ win/ws2016_x64/quadro_440.97/nvcuvid.1337 | 3 +++ 7 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 win/win10_x64/440.97/nvcuvid.1337 create mode 100644 win/win10_x64/quadro_440.97/nvcuvid.1337 create mode 100644 win/win7_x64/440.97/nvcuvid.1337 create mode 100644 win/win7_x64/quadro_440.97/nvcuvid.1337 create mode 100644 win/ws2012_x64/quadro_440.97/nvcuvid.1337 create mode 100644 win/ws2016_x64/quadro_440.97/nvcuvid.1337 diff --git a/win/tools/autopatch/autopatch.py b/win/tools/autopatch/autopatch.py index c060974..5572964 100755 --- a/win/tools/autopatch/autopatch.py +++ b/win/tools/autopatch/autopatch.py @@ -36,10 +36,10 @@ def parse_args(): help="name of installed target file. Used for patch " "header") parser.add_argument("-S", "--search", - default="FF908000000084C07408", + default="FF909800000084C075", help="representation of search pattern binary string") parser.add_argument("-R", "--replacement", - default="FF908000000084C09090", + default="FF90980000000C0175", help="representation of replacement binary string") parser.add_argument("-o", "--stdout", action="store_true", diff --git a/win/win10_x64/440.97/nvcuvid.1337 b/win/win10_x64/440.97/nvcuvid.1337 new file mode 100644 index 0000000..509c922 --- /dev/null +++ b/win/win10_x64/440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000E7A5D:84->0C +00000000000E7A5E:C0->01 \ No newline at end of file diff --git a/win/win10_x64/quadro_440.97/nvcuvid.1337 b/win/win10_x64/quadro_440.97/nvcuvid.1337 new file mode 100644 index 0000000..509c922 --- /dev/null +++ b/win/win10_x64/quadro_440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000E7A5D:84->0C +00000000000E7A5E:C0->01 \ No newline at end of file diff --git a/win/win7_x64/440.97/nvcuvid.1337 b/win/win7_x64/440.97/nvcuvid.1337 new file mode 100644 index 0000000..b6d4e94 --- /dev/null +++ b/win/win7_x64/440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000D4ABD:84->0C +00000000000D4ABE:C0->01 \ No newline at end of file diff --git a/win/win7_x64/quadro_440.97/nvcuvid.1337 b/win/win7_x64/quadro_440.97/nvcuvid.1337 new file mode 100644 index 0000000..b6d4e94 --- /dev/null +++ b/win/win7_x64/quadro_440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000D4ABD:84->0C +00000000000D4ABE:C0->01 \ No newline at end of file diff --git a/win/ws2012_x64/quadro_440.97/nvcuvid.1337 b/win/ws2012_x64/quadro_440.97/nvcuvid.1337 new file mode 100644 index 0000000..b6d4e94 --- /dev/null +++ b/win/ws2012_x64/quadro_440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000D4ABD:84->0C +00000000000D4ABE:C0->01 \ No newline at end of file diff --git a/win/ws2016_x64/quadro_440.97/nvcuvid.1337 b/win/ws2016_x64/quadro_440.97/nvcuvid.1337 new file mode 100644 index 0000000..509c922 --- /dev/null +++ b/win/ws2016_x64/quadro_440.97/nvcuvid.1337 @@ -0,0 +1,3 @@ +>nvcuvid.dll +00000000000E7A5D:84->0C +00000000000E7A5E:C0->01 \ No newline at end of file From 8eb2b50a9ac19eb275f04de63bfe206fdcc92210 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Tue, 22 Oct 2019 19:00:25 +0300 Subject: [PATCH 2/3] ap: ensure only one occurence --- win/tools/autopatch/autopatch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/win/tools/autopatch/autopatch.py b/win/tools/autopatch/autopatch.py index 5572964..74dc82f 100755 --- a/win/tools/autopatch/autopatch.py +++ b/win/tools/autopatch/autopatch.py @@ -59,6 +59,9 @@ class ExtractException(Exception): class PatternNotFoundException(Exception): pass +class MultipleOccurencesException(Exception): + pass + class UnknownPlatformException(Exception): pass @@ -130,9 +133,11 @@ def make_patch(archive, *, sevenzip=sevenzip) as tgt: f = expand(tgt, sevenzip=sevenzip) offset = f.find(search) - del f if offset == -1: raise PatternNotFoundException("Pattern not found.") + if f[offset+len(search):].find(search) != -1: + raise MultipleOccurencesException("Multiple occurences of pattern found!") + del f print("Pattern found @ %016X" % (offset,), file=sys.stderr) res = [] From f5f1459f8df5d19979e10dd7aa4782510b15a867 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Tue, 22 Oct 2019 19:11:16 +0300 Subject: [PATCH 3/3] ver 440.97: add links --- win/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/win/README.md b/win/README.md index 9a2cdba..d13a8bd 100644 --- a/win/README.md +++ b/win/README.md @@ -1,7 +1,7 @@ Nvidia drivers patch for Windows ================================ -![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-436.48-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-436.30-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-440.97-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-440.97-blue.svg) This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -65,6 +65,7 @@ A video tutorial is also available. Credits to designator2009. | GeForce | 436.15 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/436.15/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.15/436.15-desktop-win10-64bit-international-whql.exe) | | GeForce | 436.30 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/436.30/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.30/436.30-desktop-win10-64bit-international-whql.exe) | | GeForce | 436.48 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/436.48/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.48/436.48-desktop-win10-64bit-international-whql.exe) | +| GeForce | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/440.97/440.97-desktop-win10-64bit-international-whql.exe) | @@ -86,6 +87,7 @@ A video tutorial is also available. Credits to designator2009. | Quadro | 431.94 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_431.94/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.94/431.94-quadro-desktop-notebook-win10-64bit-international-whql.exe) | | Quadro | 436.02 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_436.02/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/436.02/436.02-quadro-desktop-notebook-win10-64bit-international-whql.exe) | | Quadro | 436.30 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_436.30/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/436.30/436.30-quadro-desktop-notebook-win10-64bit-international-whql.exe) | +| Quadro | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/quadro_440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/440.97/440.97-quadro-desktop-notebook-win10-64bit-international-whql.exe) | ### Windows 7, Windows 8, Windows 8.1 drivers @@ -98,6 +100,7 @@ A video tutorial is also available. Credits to designator2009. | GeForce | 436.15 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/436.15/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.15/436.15-desktop-win8-win7-64bit-international-whql.exe) | | GeForce | 436.30 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/436.30/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.30/436.30-desktop-win8-win7-64bit-international-whql.exe) | | GeForce | 436.48 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/436.48/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/436.48/436.48-desktop-win8-win7-64bit-international-whql.exe) | +| GeForce | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/440.97/440.97-desktop-win8-win7-64bit-international-whql.exe) | @@ -109,6 +112,7 @@ A video tutorial is also available. Credits to designator2009. | Quadro | 431.94 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/quadro_431.94/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.94/431.94-quadro-desktop-notebook-win8-win7-64bit-international-whql.exe) | | Quadro | 436.02 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/quadro_436.02/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/436.02/436.02-quadro-desktop-notebook-win8-win7-64bit-international-whql.exe) | | Quadro | 436.30 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/quadro_436.30/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/436.30/436.30-quadro-desktop-notebook-win8-win7-64bit-international-whql.exe) | +| Quadro | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win7_x64/quadro_440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/440.97/440.97-quadro-desktop-notebook-win8-win7-64bit-international-whql.exe) | ### Windows Server 2008R2, 2012, 2012R2 drivers @@ -122,6 +126,7 @@ A video tutorial is also available. Credits to designator2009. | Quadro | 431.70 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2012_x64/quadro_431.70/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.70/431.70-quadro-winserv2008r2-2012-2012r2-64bit-international-whql.exe) | | Quadro | 431.86 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2012_x64/quadro_431.86/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.86/431.86-quadro-winserv2008r2-2012-2012r2-64bit-international-whql.exe) | | Quadro | 431.94 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2012_x64/quadro_431.94/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.94/431.94-quadro-winserv2008r2-2012-2012r2-64bit-international-whql.exe) | +| Quadro | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2012_x64/quadro_440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/440.97/440.97-quadro-winserv2008r2-2012-2012r2-64bit-international-whql.exe) | ### Windows Server 2016, 2019 drivers @@ -134,6 +139,7 @@ A video tutorial is also available. Credits to designator2009. | Quadro | 431.70 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2016_x64/quadro_431.70/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.70/431.70-quadro-winserv-2016-2019-64bit-international-whql.exe) | | Quadro | 431.86 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2016_x64/quadro_431.86/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.86/431.86-quadro-winserv-2016-2019-64bit-international-whql.exe) | | Quadro | 431.94 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2016_x64/quadro_431.94/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/431.94/431.94-quadro-winserv-2016-2019-64bit-international-whql.exe) | +| Quadro | 440.97 | [Direct link](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/ws2016_x64/quadro_440.97/nvcuvid.1337) | [Direct link](https://international.download.nvidia.com/Windows/Quadro_Certified/440.97/440.97-quadro-winserv-2016-2019-64bit-international-whql.exe) | ## Benchmarks