anv: Add anv_device parameter to anv_gem_munmap.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 20 Feb 2019 23:26:43 +0000 (15:26 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 20 Apr 2020 17:59:06 +0000 (10:59 -0700)
commit0d387da08349e1bdd222efae0657fc74009d9955
tree93a87107583a585722188743a2a327d4ad24c0cb
parentd1c1ead7cd6ea8a9025703f519b09f0e0e8c673c
anv: Add anv_device parameter to anv_gem_munmap.

Also update all of its callers.

On the next commit, the device will be used by anv_gem_munmap to choose
whether we need to call the valgrind code or not, depending on which
type of mmap we are using.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1675>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_gem_stubs.c
src/intel/vulkan/anv_private.h