mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
vk/gem: Set the gem_mmap.flags parameter to 0 if it exists
This commit is contained in:
parent
f7b0f922be
commit
c15f3834e3
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue