mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Allocate memory for resource if heap memory cannot be used.
Anvil has additional restrictions for index and vertex buffers. 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:
parent
296833e5ab
commit
0463588591
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user