anv: Query memory region info
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 1 Apr 2020 01:23:25 +0000 (18:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Jun 2021 16:14:38 +0000 (16:14 +0000)
commit65e8d72bc106b0cce62d2037aa0e7f1babf42d13
treec7a8d14549795959e9692b51a2162f7843b5991d
parentaa3775c8e4aa0bf063121eada45564e1d2c8bb14
anv: Query memory region info

Create additional memory type with DEVICE_LOCAL_BIT if we have local
memory region aviable.

v2 (Jason Ekstrand):
 - Don't leak mem_regions if the second ioctl fails

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5599>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h