From 465f5eefb1935edc6aef8dd6eba24e040d22f14f Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Thu, 7 Jan 2016 15:21:14 -0700 Subject: misc: make sure host memory alignment is a power of two Use sizeof(int) as a default generally. Is that reasonable? --- loader/debug_report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader/debug_report.c') diff --git a/loader/debug_report.c b/loader/debug_report.c index ebb1ae29..4065fb03 100644 --- a/loader/debug_report.c +++ b/loader/debug_report.c @@ -74,7 +74,7 @@ VkResult util_CreateDebugReportCallback( { VkLayerDbgFunctionNode *pNewDbgFuncNode; if (pAllocator != NULL) { - pNewDbgFuncNode = (VkLayerDbgFunctionNode *) pAllocator->pfnAllocation(pAllocator->pUserData, sizeof(VkLayerDbgFunctionNode), sizeof(uint32_t), VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); + pNewDbgFuncNode = (VkLayerDbgFunctionNode *) pAllocator->pfnAllocation(pAllocator->pUserData, sizeof(VkLayerDbgFunctionNode), sizeof(int *), VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); } else { pNewDbgFuncNode = (VkLayerDbgFunctionNode *) loader_heap_alloc(inst, sizeof(VkLayerDbgFunctionNode), VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); } -- cgit v1.2.3