From aa523d3c627a3e86aaef48671f1925f666ba33fd Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 5 Jun 2015 16:41:49 -0700 Subject: [PATCH] vk/gem: Call VALGRIND_FREELIKE_BLOCK before unmapping --- src/vulkan/gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2