mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
d3d12: Fix build with GST_DISABLE_GST_DEBUG
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5585>
This commit is contained in:
parent
bf05cfea45
commit
c3cef6e923
2 changed files with 6 additions and 1 deletions
|
@ -66,8 +66,13 @@ gboolean _gst_d3d12_result (HRESULT hr,
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if D3D12 API call result is SUCCESS
|
* Returns: %TRUE if D3D12 API call result is SUCCESS
|
||||||
*/
|
*/
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
#define gst_d3d12_result(result,device) \
|
#define gst_d3d12_result(result,device) \
|
||||||
_gst_d3d12_result (result, device, GST_CAT_DEFAULT, __FILE__, GST_FUNCTION, __LINE__, GST_LEVEL_ERROR)
|
_gst_d3d12_result (result, device, GST_CAT_DEFAULT, __FILE__, GST_FUNCTION, __LINE__, GST_LEVEL_ERROR)
|
||||||
|
#else
|
||||||
|
#define gst_d3d12_result(result,device) \
|
||||||
|
_gst_d3d12_result (result, device, NULL, __FILE__, GST_FUNCTION, __LINE__, GST_LEVEL_ERROR)
|
||||||
|
#endif
|
||||||
|
|
||||||
guint gst_d3d12_calculate_subresource (guint mip_slice,
|
guint gst_d3d12_calculate_subresource (guint mip_slice,
|
||||||
guint array_slice,
|
guint array_slice,
|
||||||
|
|
|
@ -54,7 +54,7 @@ if not have_d3d12_headers
|
||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.has_header('d3d12sdklayers.h')
|
if not gst_debug_disabled and cc.has_header('d3d12sdklayers.h')
|
||||||
extra_args += ['-DHAVE_D3D12_SDKLAYERS_H']
|
extra_args += ['-DHAVE_D3D12_SDKLAYERS_H']
|
||||||
if cc.has_header_symbol('d3d12sdklayers.h', 'ID3D12Debug5')
|
if cc.has_header_symbol('d3d12sdklayers.h', 'ID3D12Debug5')
|
||||||
extra_args += ['-DHAVE_D3D12DEBUG5']
|
extra_args += ['-DHAVE_D3D12DEBUG5']
|
||||||
|
|
Loading…
Reference in a new issue