anv: rename the vm_bind vfuncs
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 Aug 2023 23:35:11 +0000 (16:35 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 11 Sep 2023 16:04:01 +0000 (16:04 +0000)
commita54451075d4c8bb5ce6ade53b95c4c29812125cf
tree5f26918162969fad8a7a471c8890fcec9054c180
parent0a1ccd4a9a6c85bce2013d8ff843e96d151288c9
anv: rename the vm_bind vfuncs

The only driver that has a vm_bind ioctl is xe.ko, and its vm_bind
ioctl is not called GEM vm_bind, it's just DRM_IOCTL_XE_VM_BIND
(without GEM anywhere). Back when i915.ko was going to have a vm_bind
ioctl it had GEM on its name, so I guess that's how "gem" appeared in
the naming here, but now nothing does, so let's get rid of it.

Also, these vfuncs we have are specifically made to bind and unbind
whole BOs, so rename them to vm_bind_bo() and vm_unbind_bo() in order
to try to clarify what they mean. The goal is to add a more generic
vm_bind() later that can do anything.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24681>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_gem_stubs.c
src/intel/vulkan/anv_kmd_backend.h
src/intel/vulkan/i915/anv_kmd_backend.c
src/intel/vulkan/xe/anv_kmd_backend.c