wsi: Basic memory allocation functions 86/65686/1
authorTaekyun Kim <tkq.kim@samsung.com>
Mon, 11 Apr 2016 07:46:05 +0000 (16:46 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Tue, 12 Apr 2016 05:56:02 +0000 (14:56 +0900)
commit8b8e0bf4341a25f57c250bcb378b5545abec3d6f
tree00335e64813571093e24b0cfbae5f69b2fd28914
parente7990b44827f0ea0d805d41d3da742689803d98a
wsi: Basic memory allocation functions

In vulkan, users can give custom host memory allocation functions. In order
to handle this specification correctly, we should be able to know allocator
of an ICD object. (such as VkInstance, VkDevice, ...) To achieve this, ICD
can provide access functions for the allocator or WSI should track
creation/destruction of required vulkan objects. At this time, we simply
ignore user provided allocator and just use standard system allocation
functions from libc.

Change-Id: Ic75050e2a3f8ebc71737b7f83b87aaff451d0b2d
src/wsi/Makefile.am
src/wsi/allocator.c [new file with mode: 0644]
src/wsi/wsi.h