summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorGreg V <[email protected]>2018-01-18 23:31:03 +0300
committerEric Engestrom <[email protected]>2019-08-08 21:44:33 +0100
commit7b520dc74f5daf9a404bf85f6480a05b3d6c8c73 (patch)
tree65ee3554c83ff3e4a32599475567d7eaea38d8fe /src/intel/vulkan
parent2be3f166002cd32a45e2d6098a5d8b3c53a9960e (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/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_allocator.c4
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)