From 3421ba1843e67109daf17711a2d411444ad62b13 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 30 Dec 2015 19:32:41 -0800 Subject: [PATCH] anv/device: Place memory types at heapIndex == 0 Previously, they were at heapIndex == 1 even though we only advertised one heap. --- src/vulkan/anv_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 88515c353ee..88a4b8d067d 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -568,7 +568,7 @@ void anv_GetPhysicalDeviceMemoryProperties( VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_CACHED_BIT, - .heapIndex = 1, + .heapIndex = 0, }; } else { /* The spec requires that we expose a host-visible, coherent memory @@ -581,13 +581,13 @@ void anv_GetPhysicalDeviceMemoryProperties( .propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, - .heapIndex = 1, + .heapIndex = 0, }; pMemoryProperties->memoryTypes[1] = (VkMemoryType) { .propertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_CACHED_BIT, - .heapIndex = 1, + .heapIndex = 0, }; } -- 2.30.2