From 65691b3e54677d62816f6e7e375e392eaa13dc0a Mon Sep 17 00:00:00 2001
From: Vladislav Yarmak <vladislav-ex-src@vm-0.com>
Date: Sat, 6 Mar 2021 01:25:41 +0200
Subject: [PATCH 1/2] win: vulkan beta driver 458.06

---
 drivers.json                            | 9 +++++++++
 win/README.md                           | 1 +
 win/win10_x64/458.06/nvencodeapi.1337   | 6 ++++++
 win/win10_x64/458.06/nvencodeapi64.1337 | 5 +++++
 4 files changed, 21 insertions(+)
 create mode 100644 win/win10_x64/458.06/nvencodeapi.1337
 create mode 100644 win/win10_x64/458.06/nvencodeapi64.1337

diff --git a/drivers.json b/drivers.json
index 888e3f4..9e19d20 100644
--- a/drivers.json
+++ b/drivers.json
@@ -2617,6 +2617,15 @@
                     "patch64_url": "ws2016_x64/quadro_461.72/nvencodeapi64.1337",
                     "patch32_url": "ws2016_x64/quadro_461.72/nvencodeapi.1337",
                     "driver_url": "https://international.download.nvidia.com/Windows/Quadro_Certified/461.72/461.72-quadro-rtx-winserv-2016-2019-64bit-international-whql.exe"
+                },
+                {
+                    "os": "win10",
+                    "product": "GeForce",
+                    "version": "458.06",
+                    "variant": "Vulkan Beta",
+                    "patch64_url": "win10_x64/458.06/nvencodeapi64.1337",
+                    "patch32_url": "win10_x64/458.06/nvencodeapi.1337",
+                    "driver_url": ""
                 }
             ]
         }
diff --git a/win/README.md b/win/README.md
index 34aa89a..c83b55f 100644
--- a/win/README.md
+++ b/win/README.md
@@ -154,6 +154,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp
 | GeForce | 457.88 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.88/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.88/nvencodeapi.1337) |  |
 | GeForce | 457.91 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.91/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.91/nvencodeapi.1337) |  |
 | GeForce | 457.96 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.96/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/457.96/nvencodeapi.1337) |  |
+| GeForce | 458.06 Vulkan Beta | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/458.06/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/458.06/nvencodeapi.1337) |  |
 | GeForce | 460.79 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/460.79/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/460.79/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/460.79/460.79-desktop-win10-64bit-international-whql.exe) |
 | GeForce | 460.89 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/460.89/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/460.89/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/460.89/460.89-desktop-win10-64bit-international-whql.exe) |
 | GeForce | 460.89 Studio Driver | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_460.89/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_460.89/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/460.89/460.89-desktop-win10-64bit-international-nsd-whql.exe) |
diff --git a/win/win10_x64/458.06/nvencodeapi.1337 b/win/win10_x64/458.06/nvencodeapi.1337
new file mode 100644
index 0000000..42290e9
--- /dev/null
+++ b/win/win10_x64/458.06/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/458.06/nvencodeapi64.1337 b/win/win10_x64/458.06/nvencodeapi64.1337
new file mode 100644
index 0000000..9ad5a75
--- /dev/null
+++ b/win/win10_x64/458.06/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 1167c9347cbe6c50f0d7abaa45cf580f3afdb60f Mon Sep 17 00:00:00 2001
From: Vladislav Yarmak <vladislav-ex-src@vm-0.com>
Date: Sat, 6 Mar 2021 01:29:01 +0200
Subject: [PATCH 2/2] linux: add vulkan beta driver 455.50.10

---
 README.md    | 1 +
 drivers.json | 5 +++++
 patch-fbc.sh | 2 ++
 patch.sh     | 2 ++
 4 files changed, 10 insertions(+)

diff --git a/README.md b/README.md
index 3f58d84..3fb699e 100644
--- a/README.md
+++ b/README.md
@@ -131,6 +131,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv
 | 455.50.04 | YES | YES |  |
 | 455.50.05 | YES | YES |  |
 | 455.50.07 | YES | YES |  |
+| 455.50.10 | YES | YES |  |
 | 460.27.04 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/460.27.04/NVIDIA-Linux-x86_64-460.27.04.run) |
 | 460.32.03 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/460.32.03/NVIDIA-Linux-x86_64-460.32.03.run) |
 | 460.39 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/460.39/NVIDIA-Linux-x86_64-460.39.run) |
diff --git a/drivers.json b/drivers.json
index 9e19d20..e66b87b 100644
--- a/drivers.json
+++ b/drivers.json
@@ -538,6 +538,11 @@
                     "nvenc_patch": true,
                     "nvfbc_patch": true,
                     "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/460.56/NVIDIA-Linux-x86_64-460.56.run"
+                },
+                {
+                    "version": "455.50.10",
+                    "nvenc_patch": true,
+                    "nvfbc_patch": true
                 }
             ],
             "example": {
diff --git a/patch-fbc.sh b/patch-fbc.sh
index e4ff781..ed75157 100755
--- a/patch-fbc.sh
+++ b/patch-fbc.sh
@@ -101,6 +101,7 @@ declare -A patch_list=(
     ["455.50.04"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/'
     ["455.50.05"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/'
     ["455.50.07"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/'
+    ["455.50.10"]='s/\x83\xf8\x01\x0f\x84\x85/\x83\xf8\x69\x0f\x84\x85/'
     ["460.27.04"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/'
     ["460.32.03"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/'
     ["460.39"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/'
@@ -162,6 +163,7 @@ declare -A object_list=(
     ["455.50.04"]='libnvidia-fbc.so'
     ["455.50.05"]='libnvidia-fbc.so'
     ["455.50.07"]='libnvidia-fbc.so'
+    ["455.50.10"]='libnvidia-fbc.so'
     ["460.27.04"]='libnvidia-fbc.so'
     ["460.32.03"]='libnvidia-fbc.so'
     ["460.39"]='libnvidia-fbc.so'
diff --git a/patch.sh b/patch.sh
index 4ab7dc1..c5a5c99 100755
--- a/patch.sh
+++ b/patch.sh
@@ -138,6 +138,7 @@ declare -A patch_list=(
     ["455.50.04"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g'
     ["455.50.05"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g'
     ["455.50.07"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g'
+    ["455.50.10"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g'
     ["460.27.04"]='s/\x22\xff\xff\x85\xc0\x41\x89\xc4\x0f\x85/\x22\xff\xff\x31\xc0\x41\x89\xc4\x0f\x85/g'
     ["460.32.03"]='s/\x22\xff\xff\x85\xc0\x41\x89\xc4\x0f\x85/\x22\xff\xff\x31\xc0\x41\x89\xc4\x0f\x85/g'
     ["460.39"]='s/\x22\xff\xff\x85\xc0\x41\x89\xc4\x0f\x85/\x22\xff\xff\x31\xc0\x41\x89\xc4\x0f\x85/g'
@@ -235,6 +236,7 @@ declare -A object_list=(
     ["455.50.04"]='libnvidia-encode.so'
     ["455.50.05"]='libnvidia-encode.so'
     ["455.50.07"]='libnvidia-encode.so'
+    ["455.50.10"]='libnvidia-encode.so'
     ["460.27.04"]='libnvidia-encode.so'
     ["460.32.03"]='libnvidia-encode.so'
     ["460.39"]='libnvidia-encode.so'