The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/main: Do more tracing during init

+16
+16
src/xrt/compositor/main/comp_compositor.c
··· 472 472 static bool 473 473 compositor_check_and_prepare_xdev(struct comp_compositor *c, struct xrt_device *xdev) 474 474 { 475 + COMP_TRACE_MARKER(); 476 + 475 477 // clang-format off 476 478 bool has_none = (xdev->hmd->distortion.models & XRT_DISTORTION_MODEL_NONE) != 0; 477 479 bool has_meshuv = (xdev->hmd->distortion.models & XRT_DISTORTION_MODEL_MESHUV) != 0; ··· 716 718 static bool 717 719 compositor_init_vulkan(struct comp_compositor *c) 718 720 { 721 + COMP_TRACE_MARKER(); 722 + 719 723 struct vk_bundle *vk = get_vk(c); 720 724 VkResult ret; 721 725 ··· 881 885 static bool 882 886 compositor_check_vulkan_caps(struct comp_compositor *c) 883 887 { 888 + COMP_TRACE_MARKER(); 889 + 884 890 #ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT 885 891 VkResult ret; 886 892 ··· 986 992 static bool 987 993 compositor_init_window_pre_vulkan(struct comp_compositor *c) 988 994 { 995 + COMP_TRACE_MARKER(); 996 + 989 997 // Nothing to do for nvidia and vk_display. 990 998 if (c->settings.window_type == WINDOW_DIRECT_NVIDIA || c->settings.window_type == WINDOW_VK_DISPLAY) { 991 999 return true; ··· 1112 1120 static bool 1113 1121 compositor_init_swapchain(struct comp_compositor *c) 1114 1122 { 1123 + COMP_TRACE_MARKER(); 1124 + 1115 1125 if (comp_target_init_post_vulkan(c->target, // 1116 1126 c->settings.preferred.width, // 1117 1127 c->settings.preferred.height)) { ··· 1128 1138 static bool 1129 1139 compositor_init_render_resources(struct comp_compositor *c) 1130 1140 { 1141 + COMP_TRACE_MARKER(); 1142 + 1131 1143 struct vk_bundle *vk = get_vk(c); 1132 1144 1133 1145 if (!render_shaders_load(&c->shaders, vk)) { ··· 1144 1156 static bool 1145 1157 compositor_init_renderer(struct comp_compositor *c) 1146 1158 { 1159 + COMP_TRACE_MARKER(); 1160 + 1147 1161 c->r = comp_renderer_create(c); 1148 1162 1149 1163 #ifdef XRT_FEATURE_WINDOW_PEEK ··· 1158 1172 xrt_result_t 1159 1173 comp_main_create_system_compositor(struct xrt_device *xdev, struct xrt_system_compositor **out_xsysc) 1160 1174 { 1175 + COMP_TRACE_MARKER(); 1176 + 1161 1177 struct comp_compositor *c = U_TYPED_CALLOC(struct comp_compositor); 1162 1178 1163 1179 c->base.base.base.begin_session = compositor_begin_session;