mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
vk/allocator: Don't use memfd when valgrind is detected
This commit is contained in:
parent
682d11a6e8
commit
b6ab076d6b
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue