Mesa (main): venus: log performance envs upon instance creation with debug init

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 2 20:26:59 UTC 2022


Module: Mesa
Branch: main
Commit: 3f44bad1ce8d6ae7a35a698825cbb0d17ae37838
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f44bad1ce8d6ae7a35a698825cbb0d17ae37838

Author: Yiwei Zhang <zzyiwei at chromium.org>
Date:   Fri Apr 29 22:58:41 2022 +0000

venus: log performance envs upon instance creation with debug init

Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Change-Id: I8db93d6de28ac6a727c10fbaca94cffac092f8ea
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16256>

---

 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



More information about the mesa-commit mailing list