projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9763634
)
anv/device: Wrap a couple valgrind calls in the VG macro
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 28 Sep 2015 18:08:50 +0000
(11:08 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 28 Sep 2015 18:18:52 +0000
(11:18 -0700)
This fixes the build for systems that don't have valgrind devel packages
installed.
src/vulkan/anv_device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_device.c
b/src/vulkan/anv_device.c
index d79ff8a779c5319f7208cc44dc169cfce4ff1061..3c10545e8bcb7d95aaab2b34246da9201088b9c7 100644
(file)
--- 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) {
- V
ALGRIND_MEMPOOL_ALLOC(instance, mem, size
);
- V
ALGRIND_MAKE_MEM_UNDEFINED(mem, size
);
+ V
G(VALGRIND_MEMPOOL_ALLOC(instance, mem, size)
);
+ V
G(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;
- V
ALGRIND_MEMPOOL_FREE(instance, mem
);
+ V
G(VALGRIND_MEMPOOL_FREE(instance, mem)
);
instance->pfnFree(instance->pAllocUserData, mem);
}