summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-18 14:04:13 -0800
committerJason Ekstrand <[email protected]>2016-01-18 14:04:13 -0800
commit45d17fcf9bd41dfcd34f01bf62b031d8ca071edd (patch)
treeeb86c70dc191ec4da05a939ffb6a569fb38bfc94 /src/vulkan/anv_device.c
parent378af64e30a6be1eff3b06b896ccbfc32bfd840d (diff)
anv: Misc allocation scope fixes
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 7493ff7b7fc..abc9ed66dd0 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -227,7 +227,7 @@ VkResult anv_CreateInstance(
}
instance = anv_alloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
- VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
+ VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
if (!instance)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
@@ -698,7 +698,7 @@ VkResult anv_CreateDevice(
device = anv_alloc2(&physical_device->instance->alloc, pAllocator,
sizeof(*device), 8,
- VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
+ VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
if (!device)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);