From: Jason Ekstrand Date: Mon, 18 May 2015 16:57:12 +0000 (-0700) Subject: vk/gem: Only VK_CLEAR the addr_ptr in gen_mmap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7b0f922bec7e0d14d72ff14e0cab794c53addc5;p=mesa.git vk/gem: Only VK_CLEAR the addr_ptr in gen_mmap --- diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index 99cc0be71a8..2833e0c2901 100644 --- a/src/vulkan/gem.c +++ b/src/vulkan/gem.c @@ -97,10 +97,10 @@ anv_gem_mmap(struct anv_device *device, uint32_t gem_handle, struct drm_i915_gem_mmap gem_mmap; int ret; - VG_CLEAR(gem_mmap); gem_mmap.handle = gem_handle; gem_mmap.offset = offset; gem_mmap.size = size; + VG_CLEAR(gem_mmap.addr_ptr); ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_MMAP, &gem_mmap); if (ret != 0) { /* FIXME: Is NULL the right error return? Cf MAP_INVALID */