Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
153b1bc3
Commit
153b1bc3
authored
Dec 01, 2019
by
Vladislav Yarmak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbc: update driver db structure
parent
f5859a61
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
9 deletions
+82
-9
drivers.json
drivers.json
+75
-1
tools/readme-autogen/migrate_patches.py
tools/readme-autogen/migrate_patches.py
+7
-8
No files found.
drivers.json
View file @
153b1bc3
This diff is collapsed.
Click to expand it.
tools/readme-autogen/migrate_patches.py
View file @
153b1bc3
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment