anv: Make anv_vma_alloc/free a lot dumber
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 22 Jan 2020 22:40:13 +0000 (16:40 -0600)
committerMarge Bot <eric+marge@anholt.net>
Sat, 25 Jan 2020 02:18:33 +0000 (02:18 +0000)
commitb29cf7daf3a63eb57b8ca3716f4398fa28d11db7
treee196ec6d8b7d02377bd075f3177d7389d6f3da5d
parentfd0f9d1196305a73859702e49bb304cc1e0af244
anv: Make anv_vma_alloc/free a lot dumber

All they do now is take a size, align, and flags and figure out which
heap to allocate in.  All of the actual code to deal with the BO is in
anv_allocator.c.  We want to leave anv_vma_alloc/free in anv_device.c
because it deals with API-exposed heaps so it still makes sense to have
it there.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3519>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h