From: Greg V Date: Thu, 18 Jan 2018 20:31:03 +0000 (+0300) Subject: anv: add MAP_POPULATE fallback define for portability X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b520dc74f5daf9a404bf85f6480a05b3d6c8c73;p=mesa.git anv: add MAP_POPULATE fallback define for portability FreeBSD does not have MAP_POPULATE Reviewed-by: Eric Engestrom --- 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)