vk/allocator: Don't use memfd when valgrind is detected

This commit is contained in:
Jason Ekstrand 2015-05-18 15:58:02 -07:00
parent 682d11a6e8
commit b6ab076d6b

View file

@ -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)