Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8bbf2dac
Commit
8bbf2dac
authored
Nov 14, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_d3d11: Log adapter details on device creation
This is helpful to know what device has actually been used.
parent
4af050c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
hwcontext_d3d11va.c
libavutil/hwcontext_d3d11va.c
+8
-1
No files found.
libavutil/hwcontext_d3d11va.c
View file @
8bbf2dac
...
...
@@ -515,8 +515,15 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device,
hr
=
mD3D11CreateDevice
(
pAdapter
,
pAdapter
?
D3D_DRIVER_TYPE_UNKNOWN
:
D3D_DRIVER_TYPE_HARDWARE
,
NULL
,
creationFlags
,
NULL
,
0
,
D3D11_SDK_VERSION
,
&
device_hwctx
->
device
,
NULL
,
NULL
);
if
(
pAdapter
)
if
(
pAdapter
)
{
DXGI_ADAPTER_DESC2
desc
;
hr
=
IDXGIAdapter2_GetDesc
(
pAdapter
,
&
desc
);
if
(
!
FAILED
(
hr
))
{
av_log
(
ctx
,
AV_LOG_INFO
,
"Using device %04x:%04x (%ls).
\n
"
,
desc
.
VendorId
,
desc
.
DeviceId
,
desc
.
Description
);
}
IDXGIAdapter_Release
(
pAdapter
);
}
if
(
FAILED
(
hr
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to create Direct3D device (%lx)
\n
"
,
(
long
)
hr
);
return
AVERROR_UNKNOWN
;
...
...
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