Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
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
videolan
vlc-gpu
Commits
ebf225d0
Commit
ebf225d0
authored
Jan 17, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saved the informations returned by IDirect3D9_GetAdapterIdentifier (dxva2).
parent
711605af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+15
-12
No files found.
modules/codec/avcodec/dxva2.c
View file @
ebf225d0
...
...
@@ -221,6 +221,7 @@ typedef struct
/* Direct3D */
D3DPRESENT_PARAMETERS
d3dpp
;
LPDIRECT3D9
d3dobj
;
D3DADAPTER_IDENTIFIER9
d3dai
;
LPDIRECT3DDEVICE9
d3ddev
;
/* Device manager */
...
...
@@ -532,6 +533,14 @@ static int D3dCreateDevice(vlc_va_dxva2_t *va)
}
va
->
d3dobj
=
d3dobj
;
/* */
D3DADAPTER_IDENTIFIER9
*
d3dai
=
&
va
->
d3dai
;
if
(
FAILED
(
IDirect3D9_GetAdapterIdentifier
(
va
->
d3dobj
,
D3DADAPTER_DEFAULT
,
0
,
d3dai
)))
{
msg_Warn
(
va
->
log
,
"IDirect3D9_GetAdapterIdentifier failed"
);
ZeroMemory
(
d3dai
,
sizeof
(
*
d3dai
));
}
/* */
D3DPRESENT_PARAMETERS
*
d3dpp
=
&
va
->
d3dpp
;
ZeroMemory
(
d3dpp
,
sizeof
(
*
d3dpp
));
...
...
@@ -578,17 +587,11 @@ static void D3dDestroyDevice(vlc_va_dxva2_t *va)
*/
static
char
*
DxDescribe
(
vlc_va_dxva2_t
*
va
)
{
D3DADAPTER_IDENTIFIER9
id
;
ZeroMemory
(
&
id
,
sizeof
(
id
));
if
(
FAILED
(
IDirect3D9_GetAdapterIdentifier
(
va
->
d3dobj
,
D3DADAPTER_DEFAULT
,
0
,
&
id
)))
return
strdup
(
"DXVA2 (unknown)"
);
D3DADAPTER_IDENTIFIER9
*
id
=
&
va
->
d3dai
;
char
*
description
;
if
(
asprintf
(
&
description
,
"DXVA2 (%.*s, vendor %d, device %d, revision %d)"
,
sizeof
(
id
.
Description
),
id
.
Description
,
id
.
VendorId
,
id
.
DeviceId
,
id
.
Revision
)
<
0
)
sizeof
(
id
->
Description
),
id
->
Description
,
id
->
VendorId
,
id
->
DeviceId
,
id
->
Revision
)
<
0
)
return
NULL
;
return
description
;
}
...
...
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