libs/vkd3d: Try to allocate coherent host visible memory for CUSTOM heap.

This commit is contained in:
Józef Kucia 2016-10-24 13:20:09 +02:00
parent 81164d43f7
commit 3161f346b6

View File

@ -210,13 +210,15 @@ static unsigned int vkd3d_select_memory_type(struct d3d12_device *device, uint32
required_flags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; required_flags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
break; break;
case D3D12_HEAP_TYPE_CUSTOM:
FIXME("Custom heaps not supported yet.\n");
case D3D12_HEAP_TYPE_UPLOAD: case D3D12_HEAP_TYPE_UPLOAD:
case D3D12_HEAP_TYPE_READBACK: case D3D12_HEAP_TYPE_READBACK:
required_flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; required_flags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
break; break;
default: default:
FIXME("Unsupported heap type %#x.\n", heap_properties->Type); WARN("Invalid heap type %#x.\n", heap_properties->Type);
return ~0u; return ~0u;
} }