From: Jason Ekstrand Date: Thu, 31 Dec 2015 03:32:41 +0000 (-0800) Subject: anv/device: Place memory types at heapIndex == 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3421ba1843e67109daf17711a2d411444ad62b13;p=mesa.git anv/device: Place memory types at heapIndex == 0 Previously, they were at heapIndex == 1 even though we only advertised one heap. --- 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, }; }