anv: Implement VK_EXT_device_memory_report

Report device memory events for:
  - command buffers
  - pipelines
  - descriptor sets and descriptor pools
  - device memory

Co-authored-by: shenghualin <shenghua.lin@intel.com>
Co-authored-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33767>
This commit is contained in:
Lucas Fryzek
2025-02-17 10:07:04 +00:00
committed by Marge Bot
parent cfcc522bf8
commit f01ad7c34c
12 changed files with 191 additions and 32 deletions

View File

@@ -128,6 +128,12 @@ vk_object_base_from_u64_handle(uint64_t handle, VkObjectType obj_type)
return base;
}
static inline uint64_t
vk_object_to_u64_handle(struct vk_object_base *obj)
{
return (uintptr_t)obj;
}
/** Define handle cast macros for the given dispatchable handle type
*
* For a given `driver_struct`, this defines `driver_struct_to_handle()` and