projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682d11a
)
vk/allocator: Don't use memfd when valgrind is detected
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 18 May 2015 22:58:02 +0000
(15:58 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 18 May 2015 22:58:20 +0000
(15:58 -0700)
src/vulkan/allocator.c
patch
|
blob
|
history
diff --git
a/src/vulkan/allocator.c
b/src/vulkan/allocator.c
index
94b7d54
..
5cabc46
100644
(file)
--- 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)