From 7b520dc74f5daf9a404bf85f6480a05b3d6c8c73 Mon Sep 17 00:00:00 2001 From: Greg V Date: Thu, 18 Jan 2018 23:31:03 +0300 Subject: [PATCH] anv: add MAP_POPULATE fallback define for portability FreeBSD does not have MAP_POPULATE Reviewed-by: Eric Engestrom --- src/intel/vulkan/anv_allocator.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2