Source
42
42
#include <xf86drm.h>
43
43
#include <omap_drm.h>
44
44
#include <omap_drmif.h>
45
45
#define DEFAULT_REGION MEM_TILER_1D
46
46
47
47
#elif defined(BUILDOS_QNX)
48
48
/* IPC Headers */
49
49
#include <tilermem.h>
50
50
#include <SharedMemoryAllocatorUsr.h>
51
51
#include <memmgr.h>
52
-
#define DEFAULT_REGION MEM_TILER_1D
52
+
#define DEFAULT_REGION MEM_SHARED
53
53
54
54
#elif defined (BUILDOS_ANDROID)
55
55
#define DEFAULT_REGION MEM_CARVEOUT
56
56
#endif
57
57
58
58
#define P2H(p) (&(((MemHeader *)(p))[-1]))
59
59
#define H2P(h) ((void *)&(h)[1])
60
60
61
61
#define GetSz(buf) ((P2H(buf))->size + sizeof(MemHeader))
62
62