mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
venus: fix tracing init to include instance creation
The issue was hidden so far because: - wsi_device_init does the perfetto tracing init - Android atrace does lazy tracing init Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21153>
This commit is contained in:
parent
91b0ae93b2
commit
0938c1f7e2
2 changed files with 4 additions and 1 deletions
|
|
@ -87,6 +87,8 @@ vn_trace_init(void)
|
|||
{
|
||||
#ifdef ANDROID
|
||||
atrace_init();
|
||||
#else
|
||||
util_perfetto_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -701,14 +701,15 @@ vn_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
|
|||
const VkAllocationCallbacks *pAllocator,
|
||||
VkInstance *pInstance)
|
||||
{
|
||||
vn_trace_init();
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
const VkAllocationCallbacks *alloc =
|
||||
pAllocator ? pAllocator : vk_default_allocator();
|
||||
struct vn_instance *instance;
|
||||
VkResult result;
|
||||
|
||||
vn_env_init();
|
||||
vn_trace_init();
|
||||
|
||||
instance = vk_zalloc(alloc, sizeof(*instance), VN_DEFAULT_ALIGN,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue