fbc: update driver db structure

This commit is contained in:
Vladislav Yarmak 2019-12-01 17:15:26 +02:00
parent f5859a6112
commit 153b1bc3e6
2 changed files with 82 additions and 9 deletions

View File

@ -4,149 +4,223 @@
"drivers": [ "drivers": [
{ {
"version": "375.39", "version": "375.39",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/375.39/NVIDIA-Linux-x86_64-375.39.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/375.39/NVIDIA-Linux-x86_64-375.39.run"
}, },
{ {
"version": "390.77", "version": "390.77",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/390.77/NVIDIA-Linux-x86_64-390.77.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/390.77/NVIDIA-Linux-x86_64-390.77.run"
}, },
{ {
"version": "390.87", "version": "390.87",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/390.87/NVIDIA-Linux-x86_64-390.87.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/390.87/NVIDIA-Linux-x86_64-390.87.run"
}, },
{ {
"version": "396.24", "version": "396.24",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/396.24/NVIDIA-Linux-x86_64-396.24.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/396.24/NVIDIA-Linux-x86_64-396.24.run"
}, },
{ {
"version": "396.26", "version": "396.26",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/396.26/NVIDIA-Linux-x86_64-396.26.run" "driver_url": "https://international.download.nvidia.com/tesla/396.26/NVIDIA-Linux-x86_64-396.26.run"
}, },
{ {
"version": "396.37", "version": "396.37",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/396.37/NVIDIA-Linux-x86_64-396.37.run" "driver_url": "https://international.download.nvidia.com/tesla/396.37/NVIDIA-Linux-x86_64-396.37.run"
}, },
{ {
"version": "396.54", "version": "396.54",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/396.54/NVIDIA-Linux-x86_64-396.54.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/396.54/NVIDIA-Linux-x86_64-396.54.run"
}, },
{ {
"version": "410.48" "version": "410.48",
"nvenc_patch": true,
"nvfbc_patch": false
}, },
{ {
"version": "410.57", "version": "410.57",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.57/NVIDIA-Linux-x86_64-410.57.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.57/NVIDIA-Linux-x86_64-410.57.run"
}, },
{ {
"version": "410.73", "version": "410.73",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.73/NVIDIA-Linux-x86_64-410.73.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.73/NVIDIA-Linux-x86_64-410.73.run"
}, },
{ {
"version": "410.78", "version": "410.78",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run"
}, },
{ {
"version": "410.79", "version": "410.79",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/410.79/NVIDIA-Linux-x86_64-410.79.run" "driver_url": "https://international.download.nvidia.com/tesla/410.79/NVIDIA-Linux-x86_64-410.79.run"
}, },
{ {
"version": "410.93", "version": "410.93",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.93/NVIDIA-Linux-x86_64-410.93.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/410.93/NVIDIA-Linux-x86_64-410.93.run"
}, },
{ {
"version": "410.104", "version": "410.104",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/410.104/NVIDIA-Linux-x86_64-410.104.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/410.104/NVIDIA-Linux-x86_64-410.104.run"
}, },
{ {
"version": "415.18", "version": "415.18",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.18/NVIDIA-Linux-x86_64-415.18.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.18/NVIDIA-Linux-x86_64-415.18.run"
}, },
{ {
"version": "415.25", "version": "415.25",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.25/NVIDIA-Linux-x86_64-415.25.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.25/NVIDIA-Linux-x86_64-415.25.run"
}, },
{ {
"version": "415.27", "version": "415.27",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.27/NVIDIA-Linux-x86_64-415.27.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/415.27/NVIDIA-Linux-x86_64-415.27.run"
}, },
{ {
"version": "418.30", "version": "418.30",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.30/NVIDIA-Linux-x86_64-418.30.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.30/NVIDIA-Linux-x86_64-418.30.run"
}, },
{ {
"version": "418.43", "version": "418.43",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.43/NVIDIA-Linux-x86_64-418.43.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.43/NVIDIA-Linux-x86_64-418.43.run"
}, },
{ {
"version": "418.56", "version": "418.56",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.56/NVIDIA-Linux-x86_64-418.56.run" "driver_url": "https://download.nvidia.com/XFree86/Linux-x86_64/418.56/NVIDIA-Linux-x86_64-418.56.run"
}, },
{ {
"version": "418.67", "version": "418.67",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/418.67/NVIDIA-Linux-x86_64-418.67.run" "driver_url": "https://international.download.nvidia.com/tesla/418.67/NVIDIA-Linux-x86_64-418.67.run"
}, },
{ {
"version": "418.74", "version": "418.74",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/418.74/NVIDIA-Linux-x86_64-418.74.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/418.74/NVIDIA-Linux-x86_64-418.74.run"
}, },
{ {
"version": "418.87.00", "version": "418.87.00",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/418.87/NVIDIA-Linux-x86_64-418.87.00.run" "driver_url": "https://international.download.nvidia.com/tesla/418.87/NVIDIA-Linux-x86_64-418.87.00.run"
}, },
{ {
"version": "418.87.01", "version": "418.87.01",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/418.87/NVIDIA-Linux-x86_64-418.87.01.run" "driver_url": "https://international.download.nvidia.com/tesla/418.87/NVIDIA-Linux-x86_64-418.87.01.run"
}, },
{ {
"version": "418.88", "version": "418.88",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/418.88/NVIDIA-Linux-x86_64-418.88.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/418.88/NVIDIA-Linux-x86_64-418.88.run"
}, },
{ {
"version": "430.09", "version": "430.09",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.09/NVIDIA-Linux-x86_64-430.09.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.09/NVIDIA-Linux-x86_64-430.09.run"
}, },
{ {
"version": "430.14", "version": "430.14",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.14/NVIDIA-Linux-x86_64-430.14.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.14/NVIDIA-Linux-x86_64-430.14.run"
}, },
{ {
"version": "430.26", "version": "430.26",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.26/NVIDIA-Linux-x86_64-430.26.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.26/NVIDIA-Linux-x86_64-430.26.run"
}, },
{ {
"version": "430.34", "version": "430.34",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.34/NVIDIA-Linux-x86_64-430.34.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.34/NVIDIA-Linux-x86_64-430.34.run"
}, },
{ {
"version": "430.40", "version": "430.40",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.40/NVIDIA-Linux-x86_64-430.40.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.40/NVIDIA-Linux-x86_64-430.40.run"
}, },
{ {
"version": "430.50", "version": "430.50",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.50/NVIDIA-Linux-x86_64-430.50.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/430.50/NVIDIA-Linux-x86_64-430.50.run"
}, },
{ {
"version": "435.17", "version": "435.17",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/435.17/NVIDIA-Linux-x86_64-435.17.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/435.17/NVIDIA-Linux-x86_64-435.17.run"
}, },
{ {
"version": "435.21", "version": "435.21",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/435.21/NVIDIA-Linux-x86_64-435.21.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/435.21/NVIDIA-Linux-x86_64-435.21.run"
}, },
{ {
"version": "440.26", "version": "440.26",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.26/NVIDIA-Linux-x86_64-440.26.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.26/NVIDIA-Linux-x86_64-440.26.run"
}, },
{ {
"version": "440.31", "version": "440.31",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.31/NVIDIA-Linux-x86_64-440.31.run" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.31/NVIDIA-Linux-x86_64-440.31.run"
}, },
{ {
"version": "440.33.01", "version": "440.33.01",
"nvenc_patch": true,
"nvfbc_patch": false,
"driver_url": "https://international.download.nvidia.com/tesla/440.33.01/NVIDIA-Linux-x86_64-440.33.01.run" "driver_url": "https://international.download.nvidia.com/tesla/440.33.01/NVIDIA-Linux-x86_64-440.33.01.run"
}, },
{ {
"version": "440.36", "version": "440.36",
"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" "driver_url": "https://international.download.nvidia.com/XFree86/Linux-x86_64/440.36/NVIDIA-Linux-x86_64-440.36.run"
} }
], ],

View File

@ -59,15 +59,14 @@ def main():
with open(DATAFILE_PATH) as data_file: with open(DATAFILE_PATH) as data_file:
data = json.load(data_file) data = json.load(data_file)
drivers = data[OSKind.Windows.value]['x86_64']['drivers'] drivers = data[OSKind.Linux.value]['x86_64']['drivers']
for d in drivers: for d in drivers:
base, sep, tail = d['patch64_url'].rpartition('/') d['nvenc_patch'] = True
assert sep d['nvfbc_patch'] = False
assert tail if 'driver_url' in d:
d['patch64_url'] = base + '/' + 'nvencodeapi64.1337' driver_url = d['driver_url']
d['patch32_url'] = base + '/' + 'nvencodeapi.1337' del d['driver_url']
d['driver_url'] = d['driver_url'] d['driver_url'] = driver_url
validate_patch(d['patch64_url'], d['patch32_url'])
with open(DATAFILE_PATH, 'w') as data_file: with open(DATAFILE_PATH, 'w') as data_file:
json.dump(data, data_file, indent=4) json.dump(data, data_file, indent=4)