summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-02 10:39:15 -0800
committerJason Ekstrand <[email protected]>2015-12-03 13:43:54 -0800
commite6ab06ae7f084ba0df4c4274e5de010a3a751cc2 (patch)
tree637e41e08bb8168880b6d2a772255e947e8b0e54 /src/vulkan
parent93071482f98a1e36507c282d093483c534736ee1 (diff)
vk/0.210.0: Rework memory property flags
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/anv_device.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 6fa7c9952e0..9cf40e6d858 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -530,14 +530,17 @@ void anv_GetPhysicalDeviceMemoryProperties(
/* The property flags below are valid only for llc platforms. */
pMemoryProperties->memoryTypeCount = 1;
pMemoryProperties->memoryTypes[0] = (VkMemoryType) {
- .propertyFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,
+ .propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |
+ VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
+ VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
+ VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
.heapIndex = 1,
};
pMemoryProperties->memoryHeapCount = 1;
pMemoryProperties->memoryHeaps[0] = (VkMemoryHeap) {
.size = heap_size,
- .flags = VK_MEMORY_HEAP_HOST_LOCAL_BIT,
+ .flags = VK_MEMORY_HEAP_DEVICE_LOCAL_BIT,
};
}