From 0286209ee637f9b2916190b3402d49eaf7010524 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Sun, 1 Dec 2019 18:32:34 +0200 Subject: [PATCH] linux: add drivers version 435.27.08 (Vulkan beta drivers) --- README.md | 1 + drivers.json | 5 +++++ patch-fbc.sh | 2 ++ patch.sh | 2 ++ tools/readme-autogen/add_driver.py | 5 +++-- 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 653b10d..00d39b1 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Requirements: | 430.50 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/430.50/NVIDIA-Linux-x86_64-430.50.run) | | 435.17 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/435.17/NVIDIA-Linux-x86_64-435.17.run) | | 435.21 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/435.21/NVIDIA-Linux-x86_64-435.21.run) | +| 435.27.08 | :heavy_check_mark: | :heavy_check_mark: | | | 440.26 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/440.26/NVIDIA-Linux-x86_64-440.26.run) | | 440.31 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/440.31/NVIDIA-Linux-x86_64-440.31.run) | | 440.33.01 | :heavy_check_mark: | :x: | [Driver link](https://international.download.nvidia.com/tesla/440.33.01/NVIDIA-Linux-x86_64-440.33.01.run) | diff --git a/drivers.json b/drivers.json index a193095..212d90e 100644 --- a/drivers.json +++ b/drivers.json @@ -222,6 +222,11 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.36/NVIDIA-Linux-x86_64-440.36.run" + }, + { + "version": "435.27.08", + "nvenc_patch": true, + "nvfbc_patch": true } ], "example": { diff --git a/patch-fbc.sh b/patch-fbc.sh index 48d0e1e..a74b251 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -43,10 +43,12 @@ if [[ $silent_flag ]]; then fi declare -A patch_list=( + ["435.27.08"]='s/\x85\xc0\x89\xc3\x0f\x85\x68\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\x68\xfa\xff\xff/' ["440.36"]='s/\x85\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/\x31\xc0\x89\xc3\x0f\x85\xa9\xfa\xff\xff/' ) declare -A object_list=( + ["435.27.08"]='libnvidia-fbc.so' ["440.36"]='libnvidia-fbc.so' ) diff --git a/patch.sh b/patch.sh index a4533e5..5aed9c0 100755 --- a/patch.sh +++ b/patch.sh @@ -79,6 +79,7 @@ declare -A patch_list=( ["435.17"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x0f\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g' ["435.21"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x0f\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g' ["440.26"]='s/\xff\x90\x98\x00\x00\x00\x84\xc0\x0f\x84/\xff\x90\x98\x00\x00\x00\x0c\x01\x0f\x84/g' + ["435.27.08"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' ["440.31"]='s/\xff\x90\x98\x00\x00\x00\x84\xc0\x0f\x84/\xff\x90\x98\x00\x00\x00\x0c\x01\x0f\x84/g' ["440.33.01"]='s/\xff\x90\x98\x00\x00\x00\x84\xc0\x0f\x84/\xff\x90\x98\x00\x00\x00\x0c\x01\x0f\x84/g' ["440.36"]='s/\x85\xc0\x41\x89\xc4\x75\x1f/\x31\xc0\x41\x89\xc4\x75\x1f/g' @@ -119,6 +120,7 @@ declare -A object_list=( ["435.17"]='libnvcuvid.so' ["435.21"]='libnvcuvid.so' ["440.26"]='libnvcuvid.so' + ["435.27.08"]='libnvidia-encode.so' ["440.31"]='libnvcuvid.so' ["440.33.01"]='libnvcuvid.so' ["440.36"]='libnvidia-encode.so' diff --git a/tools/readme-autogen/add_driver.py b/tools/readme-autogen/add_driver.py index 360a50d..8fed2b0 100755 --- a/tools/readme-autogen/add_driver.py +++ b/tools/readme-autogen/add_driver.py @@ -139,7 +139,7 @@ def main(): url = url_tmpl.substitute(version=args.version) else: url = args.url - if not args.skip_url_check: + if url and not args.skip_url_check: try: validate_url(url) except KeyboardInterrupt: @@ -189,8 +189,9 @@ def main(): "version": args.version, "nvenc_patch": True, "nvfbc_patch": True, - "driver_url": url, } + if url: + new_driver["driver_url"] = url key_fun = linux_driver_key drivers = sorted(drivers, key=key_fun) try: