summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 01eff02d25d..9217be79306 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -844,10 +844,10 @@ anv_device_alloc(struct anv_device * device,
size_t alignment,
VkSystemAllocType allocType)
{
- return device->instance->pfnAlloc(device->instance->pAllocUserData,
- size,
- alignment,
- allocType);
+ void *mem = device->instance->pfnAlloc(device->instance->pAllocUserData,
+ size, alignment, allocType);
+ VG(VALGRIND_MAKE_MEM_UNDEFINED(mem, size));
+ return mem;
}
void