mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
libs/vkd3d: Try to allocate coherent host visible memory for CUSTOM heap.
This commit is contained in:
parent
81164d43f7
commit
3161f346b6
@ -210,13 +210,15 @@ static unsigned int vkd3d_select_memory_type(struct d3d12_device *device, uint32
|
||||
required_flags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
|
||||
break;
|
||||
|
||||
case D3D12_HEAP_TYPE_CUSTOM:
|
||||
FIXME("Custom heaps not supported yet.\n");
|
||||
case D3D12_HEAP_TYPE_UPLOAD:
|
||||
case D3D12_HEAP_TYPE_READBACK:
|
||||
required_flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
|
||||
break;
|
||||
|
||||
default:
|
||||
FIXME("Unsupported heap type %#x.\n", heap_properties->Type);
|
||||
WARN("Invalid heap type %#x.\n", heap_properties->Type);
|
||||
return ~0u;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user