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
ed73f0a1
Commit
ed73f0a1
authored
Dec 02, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Implement IDirect3D9Ex::GetAdapterLUID().
parent
03f61dec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
directx.c
dlls/d3d9/directx.c
+16
-2
directx.c
dlls/wined3d/directx.c
+10
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
wined3d.idl
include/wine/wined3d.idl
+7
-0
No files found.
dlls/d3d9/directx.c
View file @
ed73f0a1
...
...
@@ -481,9 +481,23 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3D9ExImpl_CreateDeviceEx(IDirect3
static
HRESULT
WINAPI
IDirect3D9ExImpl_GetAdapterLUID
(
IDirect3D9Ex
*
iface
,
UINT
adapter
,
LUID
*
luid
)
{
FIXME
(
"iface %p, adapter %u, luid %p stub!
\n
"
,
iface
,
adapter
,
luid
);
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
iface
;
WINED3DADAPTER_IDENTIFIER
adapter_id
;
HRESULT
hr
;
return
D3DERR_DRIVERINTERNALERROR
;
TRACE
(
"iface %p, adapter %u, luid %p.
\n
"
,
iface
,
adapter
,
luid
);
adapter_id
.
driver_size
=
0
;
adapter_id
.
description_size
=
0
;
adapter_id
.
device_name_size
=
0
;
wined3d_mutex_lock
();
hr
=
IWineD3D_GetAdapterIdentifier
(
This
->
WineD3D
,
adapter
,
0
,
&
adapter_id
);
wined3d_mutex_unlock
();
memcpy
(
luid
,
&
adapter_id
.
adapter_luid
,
sizeof
(
*
luid
));
return
hr
;
}
...
...
dlls/wined3d/directx.c
View file @
ed73f0a1
...
...
@@ -2424,6 +2424,7 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterIdentifier(IWineD3D *iface, UINT Ad
pIdentifier
->
revision
=
0
;
memcpy
(
&
pIdentifier
->
device_identifier
,
&
IID_D3DDEVICE_D3DUID
,
sizeof
(
pIdentifier
->
device_identifier
));
pIdentifier
->
whql_level
=
(
Flags
&
WINED3DENUM_NO_WHQL_LEVEL
)
?
0
:
1
;
memcpy
(
&
pIdentifier
->
adapter_luid
,
&
adapter
->
luid
,
sizeof
(
pIdentifier
->
adapter_luid
));
return
WINED3D_OK
;
}
...
...
@@ -4678,6 +4679,15 @@ BOOL InitAdapters(IWineD3DImpl *This)
adapter
->
monitorPoint
.
x
=
-
1
;
adapter
->
monitorPoint
.
y
=
-
1
;
if
(
!
AllocateLocallyUniqueId
(
&
adapter
->
luid
))
{
DWORD
err
=
GetLastError
();
ERR
(
"Failed to set adapter LUID (%#x).
\n
"
,
err
);
goto
nogl_adapter
;
}
TRACE
(
"Allocated LUID %08x:%08x for adapter.
\n
"
,
adapter
->
luid
.
HighPart
,
adapter
->
luid
.
LowPart
);
if
(
!
WineD3D_CreateFakeGLContext
(
&
fake_gl_ctx
))
{
ERR
(
"Failed to get a gl context for default adapter
\n
"
);
...
...
dlls/wined3d/wined3d_private.h
View file @
ed73f0a1
...
...
@@ -1335,6 +1335,7 @@ struct wined3d_adapter
BOOL
brokenStencil
;
/* Set on cards which only offer mixed depth+stencil */
unsigned
int
TextureRam
;
/* Amount of texture memory both video ram + AGP/TurboCache/HyperMemory/.. */
unsigned
int
UsedTextureRam
;
LUID
luid
;
};
BOOL
initPixelFormats
(
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_pci_vendor
vendor
)
DECLSPEC_HIDDEN
;
...
...
include/wine/wined3d.idl
View file @
ed73f0a1
...
...
@@ -42,6 +42,12 @@ typedef struct _RGNDATA
RGNDATAHEADER
rdh
;
char
Buffer
[
1
]
;
}
RGNDATA
;
typedef
struct
_LUID
{
DWORD
LowPart
;
LONG
HighPart
;
}
LUID
,
*
PLUID
;
cpp_quote
(
"#endif"
)
cpp_quote
(
"#define WINED3D_OK S_OK"
)
...
...
@@ -1699,6 +1705,7 @@ typedef struct _WINED3DADAPTER_IDENTIFIER
DWORD
revision
;
GUID
device_identifier
;
DWORD
whql_level
;
LUID
adapter_luid
;
}
WINED3DADAPTER_IDENTIFIER
;
typedef
struct
_WINED3DPRESENT_PARAMETERS
...
...
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