mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
d3d12: Fix d3d12sdklayer setup and d3d12device debug category
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5345>
This commit is contained in:
parent
60b93fd593
commit
68cfb64ae3
2 changed files with 4 additions and 3 deletions
|
@ -184,8 +184,6 @@ gst_d3d12_device_enable_debug (void)
|
|||
static gboolean enabled = FALSE;
|
||||
|
||||
GST_D3D12_CALL_ONCE_BEGIN {
|
||||
GST_DEBUG_CATEGORY_INIT (gst_d3d12_device_debug,
|
||||
"d3d12device", 0, "d3d12 device object");
|
||||
GST_DEBUG_CATEGORY_INIT (gst_d3d12_sdk_debug,
|
||||
"d3d12debuglayer", 0, "d3d12 SDK layer debug");
|
||||
|
||||
|
@ -545,6 +543,9 @@ gst_d3d12_device_new_internal (const GstD3D12DeviceConstructData * data)
|
|||
UINT factory_flags = 0;
|
||||
guint index = 0;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_d3d12_device_debug,
|
||||
"d3d12device", 0, "d3d12 device object");
|
||||
|
||||
#ifdef HAVE_D3D12_SDKLAYERS_H
|
||||
if (gst_d3d12_device_enable_debug ())
|
||||
factory_flags |= DXGI_CREATE_FACTORY_DEBUG;
|
||||
|
|
|
@ -52,7 +52,7 @@ if not have_d3d12_headers
|
|||
endif
|
||||
|
||||
if cc.has_header('d3d12sdklayers.h')
|
||||
extra_dep += ['-DHAVE_D3D12_SDKLAYERS_H']
|
||||
extra_args += ['-DHAVE_D3D12_SDKLAYERS_H']
|
||||
endif
|
||||
|
||||
# MinGW 32bits compiler seems to be complaining about redundant-decls
|
||||
|
|
Loading…
Reference in a new issue