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
26ba2124
Commit
26ba2124
authored
Oct 27, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Apply PCI ID overrides in init_driver_info() instead of…
wined3d: Apply PCI ID overrides in init_driver_info() instead of IWineD3DImpl_GetAdapterIdentifier().
parent
2447c8bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
directx.c
dlls/wined3d/directx.c
+12
-13
No files found.
dlls/wined3d/directx.c
View file @
26ba2124
...
...
@@ -979,8 +979,20 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
{
unsigned
int
i
;
if
(
wined3d_settings
.
pci_vendor_id
!=
PCI_VENDOR_NONE
)
{
TRACE_
(
d3d_caps
)(
"Overriding PCI vendor ID with: %04x
\n
"
,
wined3d_settings
.
pci_vendor_id
);
vendor
=
wined3d_settings
.
pci_vendor_id
;
}
driver_info
->
vendor
=
vendor
;
if
(
wined3d_settings
.
pci_device_id
!=
PCI_DEVICE_NONE
)
{
TRACE_
(
d3d_caps
)(
"Overriding PCI device ID with: %04x
\n
"
,
wined3d_settings
.
pci_device_id
);
device
=
wined3d_settings
.
pci_device_id
;
}
driver_info
->
device
=
device
;
driver_info
->
name
=
"Display"
;
driver_info
->
description
=
"Direct3D HAL"
;
driver_info
->
version_high
=
MAKEDWORD_VERSION
(
7
,
1
);
...
...
@@ -2352,19 +2364,6 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterIdentifier(IWineD3D *iface, UINT Ad
pIdentifier
->
subsystem_id
=
0
;
pIdentifier
->
revision
=
0
;
memcpy
(
&
pIdentifier
->
device_identifier
,
&
IID_D3DDEVICE_D3DUID
,
sizeof
(
pIdentifier
->
device_identifier
));
if
(
wined3d_settings
.
pci_device_id
!=
PCI_DEVICE_NONE
)
{
TRACE_
(
d3d_caps
)(
"Overriding pci device id with: %x
\n
"
,
wined3d_settings
.
pci_device_id
);
pIdentifier
->
device_id
=
wined3d_settings
.
pci_device_id
;
}
if
(
wined3d_settings
.
pci_vendor_id
!=
PCI_VENDOR_NONE
)
{
TRACE_
(
d3d_caps
)(
"Overriding pci vendor id with: %x
\n
"
,
wined3d_settings
.
pci_vendor_id
);
pIdentifier
->
vendor_id
=
wined3d_settings
.
pci_vendor_id
;
}
pIdentifier
->
whql_level
=
(
Flags
&
WINED3DENUM_NO_WHQL_LEVEL
)
?
0
:
1
;
return
WINED3D_OK
;
...
...
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