From f7b0f922bec7e0d14d72ff14e0cab794c53addc5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 18 May 2015 09:57:12 -0700 Subject: [PATCH] vk/gem: Only VK_CLEAR the addr_ptr in gen_mmap --- 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 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 */ -- 2.30.2