anv/device: Place memory types at heapIndex == 0
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 03:32:41 +0000 (19:32 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 03:32:43 +0000 (19:32 -0800)
Previously, they were at heapIndex == 1 even though we only advertised one
heap.

src/vulkan/anv_device.c

index 88515c353eea5fbb00054409ea004ae4911933ef..88a4b8d067d0455ef22ac87f521c26b240a38c37 100644 (file)
@@ -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,
       };
    }