Skip to content
Snippets Groups Projects
Commit 6bbf2110 authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon: Committed by Eric Engestrom
Browse files

anv: Fix FlushMappedMemoryRanges for odd mmap offsets


When the client calls vkMapMemory(), we have to align the requested
offset down to the nearest page or else the map will fail.  On platforms
where we have DRM_IOCTL_I915_GEM_MMAP_OFFSET, we always map the whole
buffer.  In either case, the original map may start before the requested
offset and we need to take that into account when we clflush.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <mesa/mesa!13610>
(cherry picked from commit 90ac06e5)
parent e426a9e5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment