From: Jason Ekstrand Date: Mon, 18 May 2015 19:05:17 +0000 (-0700) Subject: vk/gem: VG_CLEAR the padding for the gem_mmap struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28804fb9e4fe8b0437569505cfa8df8218395482;p=mesa.git vk/gem: VG_CLEAR the padding for the gem_mmap struct --- diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index dd70f7c1cf7..8598deedc71 100644 --- a/src/vulkan/gem.c +++ b/src/vulkan/gem.c @@ -98,6 +98,7 @@ anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, int ret; gem_mmap.handle = gem_handle; + VG_CLEAR(gem_mmap.pad); gem_mmap.offset = offset; gem_mmap.size = size; VG_CLEAR(gem_mmap.addr_ptr);