Revert "vk/allocator: Don't use memfd when valgrind is detected"
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 May 2015 03:22:51 +0000 (20:22 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 May 2015 03:57:43 +0000 (20:57 -0700)
This reverts commit b6ab076d6b7dd91ce0dda8741ba974b2402fa726.

It turns out setting USE_MEMFD to 0 is really bad because it means we can't
resize the pool.  Besides, valgrind SVN handles memfd so we really don't
need this fallback for valgrind anymore.

src/vulkan/allocator.c

index 11cdf39819896d83ff51dbf4becd5f9184b14475..17d4442334228c97a8c15fc1b67fa89291d012f6 100644 (file)
@@ -258,11 +258,7 @@ anv_block_pool_init_slave(struct anv_block_pool *pool,
  * without copying.  It breaks valgrind however, so we have a MAP_ANONYMOUS
  * path we can take for valgrind debugging. */
 
-#ifdef HAVE_VALGRIND
-#  define USE_MEMFD 0
-#else
-#  define USE_MEMFD 1
-#endif
+#define USE_MEMFD 1
 
 void
 anv_block_pool_finish(struct anv_block_pool *pool)