diff options
| author | Tony Barbour <tony@LunarG.com> | 2015-04-16 15:59:00 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2015-04-16 19:34:59 -0600 |
| commit | 72304ef99d192d235e3244a0943cb53aae6f94fc (patch) | |
| tree | 09222db2f5a0b7fa65b6f1ac9b89918fc1b0d794 /icd/common/icd-instance.c | |
| parent | 07c0c0cb3416bcf7ee7fe8a03f7216b0c57639c4 (diff) | |
| download | usermoji-72304ef99d192d235e3244a0943cb53aae6f94fc.tar.xz | |
Bug 13632 Header 84 Assorted questions and comments on vulkan.h
Diffstat (limited to 'icd/common/icd-instance.c')
| -rw-r--r-- | icd/common/icd-instance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/icd/common/icd-instance.c b/icd/common/icd-instance.c index 6d6c2cf4..5a6e9f72 100644 --- a/icd/common/icd-instance.c +++ b/icd/common/icd-instance.c @@ -76,7 +76,7 @@ struct icd_instance *icd_instance_create(const VkApplicationInfo *app_info, alloc_cb = &default_alloc_cb; instance = alloc_cb->pfnAlloc(alloc_cb->pUserData, sizeof(*instance), 0, - VK_SYSTEM_ALLOC_API_OBJECT); + VK_SYSTEM_ALLOC_TYPE_API_OBJECT); if (!instance) return NULL; @@ -85,7 +85,7 @@ struct icd_instance *icd_instance_create(const VkApplicationInfo *app_info, name = (app_info->pAppName) ? app_info->pAppName : "unnamed"; len = strlen(name); instance->name = alloc_cb->pfnAlloc(alloc_cb->pUserData, len + 1, 0, - VK_SYSTEM_ALLOC_INTERNAL); + VK_SYSTEM_ALLOC_TYPE_INTERNAL); if (!instance->name) { alloc_cb->pfnFree(alloc_cb->pUserData, instance); return NULL; @@ -150,9 +150,9 @@ VkResult icd_instance_add_logger(struct icd_instance *instance, if (!logger) { logger = icd_instance_alloc(instance, sizeof(*logger), 0, - VK_SYSTEM_ALLOC_DEBUG); + VK_SYSTEM_ALLOC_TYPE_DEBUG); if (!logger) - return VK_ERROR_OUT_OF_MEMORY; + return VK_ERROR_OUT_OF_HOST_MEMORY; logger->func = func; logger->next = instance->loggers; |
