Skip to content
Snippets Groups Projects
Commit 04635885 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

vkd3d: Allocate memory for resource if heap memory cannot be used.


Anvil has additional restrictions for index and vertex buffers.

Signed-off-by: default avatarJózef Kucia <jkucia@codeweavers.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 296833e5
No related branches found
No related tags found
No related merge requests found
......@@ -1121,9 +1121,10 @@ static HRESULT vkd3d_bind_heap_memory(struct d3d12_device *device,
if (!(requirements.memoryTypeBits & (1u << heap->vk_memory_type)))
{
FIXME("Memory type %u cannot be bound to resource %p (allowed types %#x).\n",
FIXME("Memory type %u cannot be bound to resource %p (allowed types %#x), "
"allocating device memory.\n",
heap->vk_memory_type, resource, requirements.memoryTypeBits);
return E_NOTIMPL;
return vkd3d_allocate_resource_memory(device, resource, &heap->desc.Properties, heap->desc.Flags);
}
if (d3d12_resource_is_buffer(resource))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment