From 3f44bad1ce8d6ae7a35a698825cbb0d17ae37838 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Fri, 29 Apr 2022 22:58:41 +0000 Subject: [PATCH] venus: log performance envs upon instance creation with debug init Signed-off-by: Yiwei Zhang Change-Id: I8db93d6de28ac6a727c10fbaca94cffac092f8ea Part-of: --- src/virtio/vulkan/vn_common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c index a0190cfff2d..743e3251517 100644 --- a/src/virtio/vulkan/vn_common.c +++ b/src/virtio/vulkan/vn_common.c @@ -61,6 +61,18 @@ vn_env_init(void) { static once_flag once = ONCE_FLAG_INIT; call_once(&once, vn_env_init_once); + + /* log per VkInstance creation */ + if (VN_DEBUG(INIT)) { + vn_log(NULL, + "vn_env is as below:" + "\n\tdebug = 0x%" PRIx64 "" + "\n\tperf = 0x%" PRIx64 "" + "\n\tdraw_cmd_batch_limit = %u" + "\n\trelax_base_sleep_us = %u", + vn_env.debug, vn_env.perf, vn_env.draw_cmd_batch_limit, + vn_env.relax_base_sleep_us); + } } void