diff options
author | Greg V <[email protected]> | 2018-01-18 23:31:03 +0300 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-08-08 21:44:33 +0100 |
commit | 7b520dc74f5daf9a404bf85f6480a05b3d6c8c73 (patch) | |
tree | 65ee3554c83ff3e4a32599475567d7eaea38d8fe /src | |
parent | 2be3f166002cd32a45e2d6098a5d8b3c53a9960e (diff) |
anv: add MAP_POPULATE fallback define for portability
FreeBSD does not have MAP_POPULATE
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_allocator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index a6eeed79a02..62a527ed235 100644 --- a/src/intel/vulkan/anv_allocator.c +++ b/src/intel/vulkan/anv_allocator.c @@ -50,6 +50,10 @@ #define VG_NOACCESS_WRITE(__ptr, __val) (*(__ptr) = (__val)) #endif +#ifndef MAP_POPULATE +#define MAP_POPULATE 0 +#endif + /* Design goals: * * - Lock free (except when resizing underlying bos) |