Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a1c63c27
Commit
a1c63c27
authored
Apr 23, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify the driver version info lookup in init_driver_info().
parent
38368627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
directx.c
dlls/wined3d/directx.c
+7
-18
No files found.
dlls/wined3d/directx.c
View file @
a1c63c27
...
...
@@ -1510,8 +1510,8 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
* - the gpu is not in our database (can happen when the user overrides the vendor_id / device_id)
* This could be an indication that our database is not up to date, so this should be fixed.
*/
version_info
=
get_driver_version_info
(
driver
,
driver_model
);
if
(
version_info
)
if
((
version_info
=
get_driver_version_info
(
driver
,
driver_model
))
||
(
version_info
=
get_driver_version_info
(
driver
,
DRIVER_MODEL_NT5X
))
)
{
driver_info
->
name
=
version_info
->
driver_name
;
driver_info
->
version_high
=
MAKEDWORD_VERSION
(
driver_os_version
,
version_info
->
version
);
...
...
@@ -1519,22 +1519,11 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
}
else
{
version_info
=
get_driver_version_info
(
driver
,
DRIVER_MODEL_NT5X
);
if
(
version_info
)
{
driver_info
->
name
=
version_info
->
driver_name
;
driver_info
->
version_high
=
MAKEDWORD_VERSION
(
driver_os_version
,
version_info
->
version
);
driver_info
->
version_low
=
MAKEDWORD_VERSION
(
version_info
->
subversion
,
version_info
->
build
);
}
else
{
driver_info
->
name
=
"Display"
;
driver_info
->
version_high
=
MAKEDWORD_VERSION
(
driver_os_version
,
15
);
driver_info
->
version_low
=
MAKEDWORD_VERSION
(
8
,
6
);
/* Nvidia RIVA TNT, arbitrary */
FIXME
(
"Unable to find a driver/device info for vendor_id=%#x device_id=%#x for driver_model=%d
\n
"
,
vendor
,
device
,
driver_model
);
}
ERR
(
"No driver version info found for device %04x:%04x, driver model %#x.
\n
"
,
vendor
,
device
,
driver_model
);
driver_info
->
name
=
"Display"
;
driver_info
->
version_high
=
MAKEDWORD_VERSION
(
driver_os_version
,
15
);
driver_info
->
version_low
=
MAKEDWORD_VERSION
(
8
,
6
);
/* Nvidia RIVA TNT, arbitrary */
}
TRACE
(
"Reporting (fake) driver version 0x%08x-0x%08x.
\n
"
,
...
...
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