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:
@@ -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
|
||||
|
Reference in New Issue
Block a user