From 72304ef99d192d235e3244a0943cb53aae6f94fc Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Thu, 16 Apr 2015 15:59:00 -0600 Subject: Bug 13632 Header 84 Assorted questions and comments on vulkan.h --- icd/common/icd-instance.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'icd/common/icd-instance.c') 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; -- cgit v1.2.3