aboutsummaryrefslogtreecommitdiff
path: root/loader/debug_report.c
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2016-01-07 15:21:14 -0700
committerJon Ashburn <jon@lunarg.com>2016-01-07 15:22:56 -0700
commit465f5eefb1935edc6aef8dd6eba24e040d22f14f (patch)
treed5fbc1e33bffe57155d382aae2281ad1b2d06499 /loader/debug_report.c
parent0ed2bbf5ff017ad96fadf2b18dce08d13e04dd8b (diff)
downloadusermoji-465f5eefb1935edc6aef8dd6eba24e040d22f14f.tar.xz
misc: make sure host memory alignment is a power of two
Use sizeof(int) as a default generally. Is that reasonable?
Diffstat (limited to 'loader/debug_report.c')
-rw-r--r--loader/debug_report.c2
1 files changed, 1 insertions, 1 deletions
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);
}