projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b0f92
)
vk/gem: Set the gem_mmap.flags parameter to 0 if it exists
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 18 May 2015 16:59:08 +0000
(09:59 -0700)
committer
Kristian Høgsberg
<kristian.h.kristensen@intel.com>
Mon, 18 May 2015 17:27:08 +0000
(10:27 -0700)
src/vulkan/gem.c
patch
|
blob
|
history
diff --git
a/src/vulkan/gem.c
b/src/vulkan/gem.c
index 2833e0c2901931ede6f79b97acb4496a94b04cd0..dd70f7c1cf7ff6ce7d28edeb10c35aaf12d51e0f 100644
(file)
--- a/
src/vulkan/gem.c
+++ b/
src/vulkan/gem.c
@@
-101,6
+101,11
@@
anv_gem_mmap(struct anv_device *device, uint32_t gem_handle,
gem_mmap.offset = offset;
gem_mmap.size = size;
VG_CLEAR(gem_mmap.addr_ptr);
+
+#ifdef I915_MMAP_WC
+ gem_mmap.flags = 0;
+#endif
+
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 */