From 8713dc0fa723395ac3a3868f08d8972ecad97165 Mon Sep 17 00:00:00 2001 From: LionHeartP Date: Tue, 15 Feb 2022 20:06:11 +0200 Subject: [PATCH] Add support for Linux 510.54 --- README.md | 1 + drivers.json | 6 ++++++ patch-fbc.sh | 2 ++ patch.sh | 2 ++ 4 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 7faec04..4c91d1c 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,7 @@ git clone https://ipfs.io/ipns/Qmed4r8yrBP162WK1ybd1DJWhLUi4t6mGuBoB9fLtjxR7u nv | 495.46 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/495.46/NVIDIA-Linux-x86_64-495.46.run) | | 510.39.01 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.39.01/NVIDIA-Linux-x86_64-510.39.01.run) | | 510.47.03 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.47.03/NVIDIA-Linux-x86_64-510.47.03.run) | +| 510.54 | YES | YES | [Driver link](https://international.download.nvidia.com/XFree86/Linux-x86_64/510.54/NVIDIA-Linux-x86_64-510.54.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 38153b1..bc24423 100644 --- a/drivers.json +++ b/drivers.json @@ -691,6 +691,12 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/510.47.03/NVIDIA-Linux-x86_64-510.47.03.run" + }, + { + "version": "510.54", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/510.54/NVIDIA-Linux-x86_64-510.54.run" } ], "example": { diff --git a/patch-fbc.sh b/patch-fbc.sh index ed8dfa5..bfa20dd 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -139,6 +139,7 @@ declare -A patch_list=( ["495.46"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["510.39.01"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ["510.47.03"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' + ["510.54"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x00\x72\x08\x48/' ) declare -A object_list=( @@ -226,6 +227,7 @@ declare -A object_list=( ["495.46"]='libnvidia-fbc.so' ["510.39.01"]='libnvidia-fbc.so' ["510.47.03"]='libnvidia-fbc.so' + ["510.54"]='libnvidia-fbc.so' ) check_version_supported () { diff --git a/patch.sh b/patch.sh index acf0a53..688bccd 100755 --- a/patch.sh +++ b/patch.sh @@ -177,6 +177,7 @@ declare -A patch_list=( ["495.46"]='s/\xe8\x35\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["510.39.01"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ["510.47.03"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' + ["510.54"]='s/\xe8\x15\x1f\xff\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x1f\xff\xff\x29\xc0\x41\x89\xc4/g' ) declare -A object_list=( @@ -300,6 +301,7 @@ declare -A object_list=( ["495.46"]='libnvidia-encode.so' ["510.39.01"]='libnvidia-encode.so' ["510.47.03"]='libnvidia-encode.so' + ["510.54"]='libnvidia-encode.so' ) check_version_supported () {