The open source OpenXR runtime
0
fork

Configure Feed

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

c/client: Make vulkan log configurable

authored by

Zhongwang Zhang and committed by
Jakob Bornecrantz
85fcbfae 17f4a8ce

+4 -1
+4 -1
src/xrt/compositor/client/comp_vk_client.c
··· 11 11 #include "util/u_misc.h" 12 12 #include "util/u_handles.h" 13 13 #include "util/u_trace_marker.h" 14 + #include "util/u_debug.h" 14 15 15 16 #include "comp_vk_client.h" 16 17 17 18 //! We are not allowed to touch the queue in xrDestroySwapchain 18 19 #define BREAK_OPENXR_SPEC_IN_DESTROY_SWAPCHAIN (true) 19 20 21 + // Prefixed with OXR since the only user right now is the OpenXR state tracker. 22 + DEBUG_GET_ONCE_LOG_OPTION(vulkan_log, "OXR_VULKAN_LOG", U_LOGGING_INFO) 20 23 21 24 /*! 22 25 * Down-cast helper. ··· 799 802 c->base.base.info.format_count = xcn->base.info.format_count; 800 803 801 804 // Default to info. 802 - enum u_logging_level log_level = U_LOGGING_INFO; 805 + enum u_logging_level log_level = debug_get_log_option_vulkan_log(); 803 806 804 807 ret = vk_init_from_given( // 805 808 &c->vk, // vk_bundle