diff options
author | Jason Ekstrand <[email protected]> | 2015-09-28 11:08:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-28 11:18:52 -0700 |
commit | 4e48f94469b37efc333dbc3271fe075bed3ba625 (patch) | |
tree | 9fdd98cf6fb0b61c9c01baf459e79c12a993e1cd /src/vulkan/anv_device.c | |
parent | 97636345dafd100dc80a796e53e0a5439c36d421 (diff) |
anv/device: Wrap a couple valgrind calls in the VG macro
This fixes the build for systems that don't have valgrind devel packages
installed.
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index d79ff8a779c..3c10545e8bc 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -201,8 +201,8 @@ anv_instance_alloc(struct anv_instance *instance, size_t size, void *mem = instance->pfnAlloc(instance->pAllocUserData, size, alignment, allocType); if (mem) { - VALGRIND_MEMPOOL_ALLOC(instance, mem, size); - VALGRIND_MAKE_MEM_UNDEFINED(mem, size); + VG(VALGRIND_MEMPOOL_ALLOC(instance, mem, size)); + VG(VALGRIND_MAKE_MEM_UNDEFINED(mem, size)); } return mem; } @@ -213,7 +213,7 @@ anv_instance_free(struct anv_instance *instance, void *mem) if (mem == NULL) return; - VALGRIND_MEMPOOL_FREE(instance, mem); + VG(VALGRIND_MEMPOOL_FREE(instance, mem)); instance->pfnFree(instance->pAllocUserData, mem); } |