Skip to content

Commit 170b07b

Browse files
committed
add coherent bit
1 parent 5527e94 commit 170b07b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/API/VK/VKResources.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ inline VkMemoryPropertyFlags getVulkanMemoryFlags(MemoryLocation Location) {
2626
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
2727
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
2828
case MemoryLocation::GpuToCpu:
29+
// The specs guarantees that a memory type with both HOST_VISIBLE &
30+
// HOST_COHERENT always exists on every conformant device
2931
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
32+
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
3033
VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
3134
}
3235
llvm_unreachable("All MemoryLocation cases handled");

0 commit comments

Comments
 (0)