meson: Add b_ndebug=if-release default option.
Adds NDEBUG in release builds. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
4cfa81401f
commit
630576d33f
|
@ -2586,8 +2586,8 @@ static struct vkd3d_shader_descriptor_binding vkd3d_dxbc_compiler_get_descriptor
|
|||
struct vkd3d_dxbc_compiler *compiler, const struct vkd3d_shader_register *reg,
|
||||
enum vkd3d_shader_resource_type resource_type, bool is_uav_counter, bool raw_ssbo)
|
||||
{
|
||||
VKD3D_UNUSED enum vkd3d_shader_descriptor_type descriptor_type;
|
||||
const struct vkd3d_shader_resource_binding *resource = NULL;
|
||||
enum vkd3d_shader_descriptor_type descriptor_type;
|
||||
struct vkd3d_shader_descriptor_binding binding;
|
||||
uint32_t binding_flags;
|
||||
|
||||
|
|
|
@ -7593,7 +7593,7 @@ static void d3d12_command_list_set_descriptor_table(struct d3d12_command_list *l
|
|||
{
|
||||
struct vkd3d_pipeline_bindings *bindings = &list->pipeline_bindings[bind_point];
|
||||
const struct d3d12_root_signature *root_signature = bindings->root_signature;
|
||||
const struct vkd3d_shader_descriptor_table *table;
|
||||
VKD3D_UNUSED const struct vkd3d_shader_descriptor_table *table;
|
||||
|
||||
table = root_signature_get_descriptor_table(root_signature, index);
|
||||
|
||||
|
|
|
@ -561,7 +561,7 @@ struct d3d12_fence
|
|||
|
||||
static inline struct d3d12_fence *impl_from_ID3D12Fence1(ID3D12Fence1 *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12Fence1Vtbl d3d12_fence_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12Fence1Vtbl d3d12_fence_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_fence_vtbl);
|
||||
|
@ -753,7 +753,7 @@ HRESULT d3d12_device_validate_custom_heap_type(struct d3d12_device *device,
|
|||
|
||||
static inline struct d3d12_heap *impl_from_ID3D12Heap1(ID3D12Heap1 *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12Heap1Vtbl d3d12_heap_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12Heap1Vtbl d3d12_heap_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_heap_vtbl);
|
||||
|
@ -908,7 +908,7 @@ HRESULT d3d12_resource_create_reserved(struct d3d12_device *device,
|
|||
|
||||
static inline struct d3d12_resource *impl_from_ID3D12Resource2(ID3D12Resource2 *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12Resource2Vtbl d3d12_resource_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12Resource2Vtbl d3d12_resource_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_resource_vtbl);
|
||||
|
@ -1198,7 +1198,7 @@ void d3d12_descriptor_heap_cleanup(struct d3d12_descriptor_heap *descriptor_heap
|
|||
|
||||
static inline struct d3d12_descriptor_heap *impl_from_ID3D12DescriptorHeap(ID3D12DescriptorHeap *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12DescriptorHeapVtbl d3d12_descriptor_heap_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12DescriptorHeapVtbl d3d12_descriptor_heap_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_descriptor_heap_vtbl);
|
||||
|
@ -1272,7 +1272,7 @@ HRESULT d3d12_query_heap_create(struct d3d12_device *device, const D3D12_QUERY_H
|
|||
|
||||
static inline struct d3d12_query_heap *impl_from_ID3D12QueryHeap(ID3D12QueryHeap *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12QueryHeapVtbl d3d12_query_heap_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12QueryHeapVtbl d3d12_query_heap_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_query_heap_vtbl);
|
||||
|
@ -1403,7 +1403,7 @@ void d3d12_root_signature_dec_ref(struct d3d12_root_signature *state);
|
|||
|
||||
static inline struct d3d12_root_signature *impl_from_ID3D12RootSignature(ID3D12RootSignature *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12RootSignatureVtbl d3d12_root_signature_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12RootSignatureVtbl d3d12_root_signature_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_root_signature_vtbl);
|
||||
|
@ -1661,7 +1661,7 @@ VkPipeline d3d12_pipeline_state_create_pipeline_variant(struct d3d12_pipeline_st
|
|||
|
||||
static inline struct d3d12_pipeline_state *impl_from_ID3D12PipelineState(ID3D12PipelineState *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12PipelineStateVtbl d3d12_pipeline_state_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12PipelineStateVtbl d3d12_pipeline_state_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_pipeline_state_vtbl);
|
||||
|
@ -2413,7 +2413,7 @@ HRESULT d3d12_command_signature_create(struct d3d12_device *device, const D3D12_
|
|||
|
||||
static inline struct d3d12_command_signature *impl_from_ID3D12CommandSignature(ID3D12CommandSignature *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12CommandSignatureVtbl d3d12_command_signature_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12CommandSignatureVtbl d3d12_command_signature_vtbl;
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d12_command_signature_vtbl);
|
||||
|
@ -3260,9 +3260,9 @@ static inline struct d3d12_device *unsafe_impl_from_ID3D12Device(d3d12_device_if
|
|||
|
||||
static inline struct d3d12_device *impl_from_ID3D12Device(d3d12_device_iface *iface)
|
||||
{
|
||||
extern CONST_VTBL struct ID3D12Device9Vtbl d3d12_device_vtbl;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12Device9Vtbl d3d12_device_vtbl;
|
||||
#ifdef VKD3D_ENABLE_PROFILING
|
||||
extern CONST_VTBL struct ID3D12Device9Vtbl d3d12_device_vtbl_profiled;
|
||||
VKD3D_UNUSED extern CONST_VTBL struct ID3D12Device9Vtbl d3d12_device_vtbl_profiled;
|
||||
#endif
|
||||
if (!iface)
|
||||
return NULL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
project('vkd3d-proton', ['c'], version : '2.6', meson_version : '>= 0.49', default_options : [
|
||||
'warning_level=2',
|
||||
'warning_level=2', 'b_ndebug=if-release',
|
||||
])
|
||||
|
||||
cpu_family = target_machine.cpu_family()
|
||||
|
|
Loading…
Reference in New Issue