Commit 153b1bc3 authored by Vladislav Yarmak's avatar Vladislav Yarmak

fbc: update driver db structure

parent f5859a61
This diff is collapsed.
...@@ -59,15 +59,14 @@ def main(): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment