vk/gem: VG_CLEAR the padding for the gem_mmap struct

This commit is contained in:
Jason Ekstrand
2015-05-18 12:05:17 -07:00
parent 8440b13f55
commit 28804fb9e4
+1
View File
@@ -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);