From: Jason Ekstrand Date: Mon, 18 May 2015 22:58:02 +0000 (-0700) Subject: vk/allocator: Don't use memfd when valgrind is detected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6ab076d6b7dd91ce0dda8741ba974b2402fa726;p=mesa.git vk/allocator: Don't use memfd when valgrind is detected --- diff --git a/src/vulkan/allocator.c b/src/vulkan/allocator.c index 94b7d548bfc..5cabc466841 100644 --- a/src/vulkan/allocator.c +++ b/src/vulkan/allocator.c @@ -203,7 +203,11 @@ anv_block_pool_init(struct anv_block_pool *pool, * without copying. It breaks valgrind however, so we have a MAP_ANONYMOUS * path we can take for valgrind debugging. */ -#define USE_MEMFD 1 +#ifdef HAVE_VALGRIND +# define USE_MEMFD 0 +#else +# define USE_MEMFD 1 +#endif void anv_block_pool_finish(struct anv_block_pool *pool)