projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca7e62d
)
vk/gem: Only VK_CLEAR the addr_ptr in gen_mmap
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 18 May 2015 16:57:12 +0000
(09:57 -0700)
committer
Kristian Høgsberg
<kristian.h.kristensen@intel.com>
Mon, 18 May 2015 17:27:07 +0000
(10:27 -0700)
src/vulkan/gem.c
patch
|
blob
|
history
diff --git
a/src/vulkan/gem.c
b/src/vulkan/gem.c
index 99cc0be71a8d786a28664ff26f211b81996c19a1..2833e0c2901931ede6f79b97acb4496a94b04cd0 100644
(file)
--- 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 */