mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d: Factor out debug_ignored_node_mask().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
add556f0ee
commit
cc47b37c1d
@@ -4045,8 +4045,7 @@ HRESULT d3d12_command_list_create(struct d3d12_device *device,
|
|||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node_mask && node_mask != 1)
|
debug_ignored_node_mask(node_mask);
|
||||||
FIXME("Multi-adapter not supported.\n");
|
|
||||||
|
|
||||||
if (!(object = vkd3d_malloc(sizeof(*object))))
|
if (!(object = vkd3d_malloc(sizeof(*object))))
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
@@ -1663,8 +1663,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateRootSignature(ID3D12Device *
|
|||||||
TRACE("iface %p, node_mask 0x%08x, bytecode %p, bytecode_length %lu, riid %s, root_signature %p.\n",
|
TRACE("iface %p, node_mask 0x%08x, bytecode %p, bytecode_length %lu, riid %s, root_signature %p.\n",
|
||||||
iface, node_mask, bytecode, bytecode_length, debugstr_guid(riid), root_signature);
|
iface, node_mask, bytecode, bytecode_length, debugstr_guid(riid), root_signature);
|
||||||
|
|
||||||
if (node_mask && node_mask != 1)
|
debug_ignored_node_mask(node_mask);
|
||||||
FIXME("Ignoring node mask 0x%08x.\n", node_mask);
|
|
||||||
|
|
||||||
if (FAILED(hr = d3d12_root_signature_create(device, bytecode, bytecode_length, &object)))
|
if (FAILED(hr = d3d12_root_signature_create(device, bytecode, bytecode_length, &object)))
|
||||||
return hr;
|
return hr;
|
||||||
@@ -1816,6 +1815,8 @@ static D3D12_RESOURCE_ALLOCATION_INFO * STDMETHODCALLTYPE d3d12_device_GetResour
|
|||||||
"resource_descs %p stub!\n",
|
"resource_descs %p stub!\n",
|
||||||
iface, allocation_info, visible_mask, resource_desc_count, resource_descs);
|
iface, allocation_info, visible_mask, resource_desc_count, resource_descs);
|
||||||
|
|
||||||
|
debug_ignored_node_mask(visible_mask);
|
||||||
|
|
||||||
return allocation_info;
|
return allocation_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1825,6 +1826,8 @@ static D3D12_HEAP_PROPERTIES * STDMETHODCALLTYPE d3d12_device_GetCustomHeapPrope
|
|||||||
FIXME("iface %p, heap_properties %p, node_mask 0x%08x, heap_type %#x stub!\n",
|
FIXME("iface %p, heap_properties %p, node_mask 0x%08x, heap_type %#x stub!\n",
|
||||||
iface, heap_properties, node_mask, heap_type);
|
iface, heap_properties, node_mask, heap_type);
|
||||||
|
|
||||||
|
debug_ignored_node_mask(node_mask);
|
||||||
|
|
||||||
return heap_properties;
|
return heap_properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -786,6 +786,12 @@ const char *debug_vk_memory_heap_flags(VkMemoryHeapFlags flags) DECLSPEC_HIDDEN;
|
|||||||
const char *debug_vk_memory_property_flags(VkMemoryPropertyFlags flags) DECLSPEC_HIDDEN;
|
const char *debug_vk_memory_property_flags(VkMemoryPropertyFlags flags) DECLSPEC_HIDDEN;
|
||||||
const char *debug_vk_queue_flags(VkQueueFlags flags) DECLSPEC_HIDDEN;
|
const char *debug_vk_queue_flags(VkQueueFlags flags) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
static inline void debug_ignored_node_mask(unsigned int mask)
|
||||||
|
{
|
||||||
|
if (mask && mask != 1)
|
||||||
|
FIXME("Ignoring node mask 0x%08x.\n", mask);
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT hresult_from_vk_result(VkResult vr) DECLSPEC_HIDDEN;
|
HRESULT hresult_from_vk_result(VkResult vr) DECLSPEC_HIDDEN;
|
||||||
HRESULT hresult_from_vkd3d_result(int vkd3d_result) DECLSPEC_HIDDEN;
|
HRESULT hresult_from_vkd3d_result(int vkd3d_result) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user