From: Jason Ekstrand Date: Mon, 18 May 2015 16:59:08 +0000 (-0700) Subject: vk/gem: Set the gem_mmap.flags parameter to 0 if it exists X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c15f3834e3a4c6aa348aed9296d1757d315a891e;p=mesa.git vk/gem: Set the gem_mmap.flags parameter to 0 if it exists --- diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index 2833e0c2901..dd70f7c1cf7 100644 --- 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 */