From: Jason Ekstrand Date: Fri, 5 Jun 2015 23:41:49 +0000 (-0700) Subject: vk/gem: Call VALGRIND_FREELIKE_BLOCK before unmapping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa523d3c627a3e86aaef48671f1925f666ba33fd;p=mesa.git vk/gem: Call VALGRIND_FREELIKE_BLOCK before unmapping --- diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index 8598deedc71..ab6f5c4dfbd 100644 --- a/src/vulkan/gem.c +++ b/src/vulkan/gem.c @@ -123,8 +123,8 @@ anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, void anv_gem_munmap(void *p, uint64_t size) { - munmap(p, size); VG(VALGRIND_FREELIKE_BLOCK(p, 0)); + munmap(p, size); } int