st/oxr: Trace markers

This commit is contained in:
Jakob Bornecrantz 2021-02-22 20:35:16 +00:00
parent 8c724d67d4
commit f754fb583f
7 changed files with 153 additions and 1 deletions

View file

@ -12,6 +12,7 @@
#include "oxr_handle.h" #include "oxr_handle.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "oxr_api_funcs.h" #include "oxr_api_funcs.h"
#include "oxr_api_verify.h" #include "oxr_api_verify.h"
@ -31,6 +32,8 @@
XrResult XrResult
oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo) oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSyncActions"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSyncActions");
@ -57,6 +60,8 @@ oxr_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo)
XrResult XrResult
oxr_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *bindInfo) oxr_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *bindInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrAttachSessionActionSets"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrAttachSessionActionSets");
@ -86,6 +91,8 @@ XrResult
oxr_xrSuggestInteractionProfileBindings(XrInstance instance, oxr_xrSuggestInteractionProfileBindings(XrInstance instance,
const XrInteractionProfileSuggestedBinding *suggestedBindings) const XrInteractionProfileSuggestedBinding *suggestedBindings)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSuggestInteractionProfileBindings"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSuggestInteractionProfileBindings");
@ -174,6 +181,8 @@ oxr_xrGetCurrentInteractionProfile(XrSession session,
XrPath topLevelUserPath, XrPath topLevelUserPath,
XrInteractionProfileState *interactionProfile) XrInteractionProfileState *interactionProfile)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst = NULL; struct oxr_instance *inst = NULL;
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_logger log; struct oxr_logger log;
@ -224,6 +233,8 @@ oxr_xrGetInputSourceLocalizedName(XrSession session,
uint32_t *bufferCountOutput, uint32_t *bufferCountOutput,
char *buffer) char *buffer)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst = NULL; struct oxr_instance *inst = NULL;
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
@ -276,6 +287,8 @@ oxr_xrGetInputSourceLocalizedName(XrSession session,
XrResult XrResult
oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet) oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet)
{ {
OXR_TRACE_MARKER();
struct oxr_action_set *act_set = NULL; struct oxr_action_set *act_set = NULL;
struct oxr_instance *inst = NULL; struct oxr_instance *inst = NULL;
struct u_hashset_item *d = NULL; struct u_hashset_item *d = NULL;
@ -325,6 +338,8 @@ oxr_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createIn
XrResult XrResult
oxr_xrDestroyActionSet(XrActionSet actionSet) oxr_xrDestroyActionSet(XrActionSet actionSet)
{ {
OXR_TRACE_MARKER();
struct oxr_action_set *act_set; struct oxr_action_set *act_set;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_ACTIONSET_AND_INIT_LOG(&log, actionSet, act_set, "xrDestroyActionSet"); OXR_VERIFY_ACTIONSET_AND_INIT_LOG(&log, actionSet, act_set, "xrDestroyActionSet");
@ -342,6 +357,8 @@ oxr_xrDestroyActionSet(XrActionSet actionSet)
XrResult XrResult
oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action) oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action)
{ {
OXR_TRACE_MARKER();
struct oxr_action_set *act_set; struct oxr_action_set *act_set;
struct u_hashset_item *d = NULL; struct u_hashset_item *d = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
@ -405,6 +422,8 @@ oxr_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo,
XrResult XrResult
oxr_xrDestroyAction(XrAction action) oxr_xrDestroyAction(XrAction action)
{ {
OXR_TRACE_MARKER();
struct oxr_action *act; struct oxr_action *act;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_ACTION_AND_INIT_LOG(&log, action, act, "xrDestroyAction"); OXR_VERIFY_ACTION_AND_INIT_LOG(&log, action, act, "xrDestroyAction");
@ -415,6 +434,8 @@ oxr_xrDestroyAction(XrAction action)
XrResult XrResult
oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data) oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *data)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};
@ -441,6 +462,8 @@ oxr_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getIn
XrResult XrResult
oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data) oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *data)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};
@ -467,6 +490,8 @@ oxr_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo
XrResult XrResult
oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data) oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *data)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};
@ -493,6 +518,8 @@ oxr_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getI
XrResult XrResult
oxr_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data) oxr_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *data)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};
@ -523,6 +550,8 @@ oxr_xrEnumerateBoundSourcesForAction(XrSession session,
uint32_t *sourceCountOutput, uint32_t *sourceCountOutput,
XrPath *sources) XrPath *sources)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_logger log; struct oxr_logger log;
@ -552,6 +581,8 @@ oxr_xrApplyHapticFeedback(XrSession session,
const XrHapticActionInfo *hapticActionInfo, const XrHapticActionInfo *hapticActionInfo,
const XrHapticBaseHeader *hapticEvent) const XrHapticBaseHeader *hapticEvent)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};
@ -578,6 +609,8 @@ oxr_xrApplyHapticFeedback(XrSession session,
XrResult XrResult
oxr_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo) oxr_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess = NULL; struct oxr_session *sess = NULL;
struct oxr_action *act = NULL; struct oxr_action *act = NULL;
struct oxr_subaction_paths subaction_paths = {0}; struct oxr_subaction_paths subaction_paths = {0};

View file

@ -7,6 +7,8 @@
* @ingroup oxr_api * @ingroup oxr_api
*/ */
#include "util/u_trace_marker.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -18,6 +20,8 @@
XrResult XrResult
oxr_xrSetDebugUtilsObjectNameEXT(XrInstance instance, const XrDebugUtilsObjectNameInfoEXT *nameInfo) oxr_xrSetDebugUtilsObjectNameEXT(XrInstance instance, const XrDebugUtilsObjectNameInfoEXT *nameInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSetDebugUtilsObjectNameEXT"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSetDebugUtilsObjectNameEXT");
@ -30,6 +34,8 @@ oxr_xrCreateDebugUtilsMessengerEXT(XrInstance instance,
const XrDebugUtilsMessengerCreateInfoEXT *createInfo, const XrDebugUtilsMessengerCreateInfoEXT *createInfo,
XrDebugUtilsMessengerEXT *messenger) XrDebugUtilsMessengerEXT *messenger)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_debug_messenger *mssngr; struct oxr_debug_messenger *mssngr;
struct oxr_logger log; struct oxr_logger log;
@ -52,6 +58,8 @@ oxr_xrCreateDebugUtilsMessengerEXT(XrInstance instance,
XrResult XrResult
oxr_xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) oxr_xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger)
{ {
OXR_TRACE_MARKER();
struct oxr_debug_messenger *mssngr; struct oxr_debug_messenger *mssngr;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_MESSENGER_AND_INIT_LOG(&log, messenger, mssngr, "xrDestroyDebugUtilsMessengerEXT"); OXR_VERIFY_MESSENGER_AND_INIT_LOG(&log, messenger, mssngr, "xrDestroyDebugUtilsMessengerEXT");
@ -66,6 +74,8 @@ oxr_xrSubmitDebugUtilsMessageEXT(XrInstance instance,
XrDebugUtilsMessageTypeFlagsEXT messageTypes, XrDebugUtilsMessageTypeFlagsEXT messageTypes,
const XrDebugUtilsMessengerCallbackDataEXT *callbackData) const XrDebugUtilsMessengerCallbackDataEXT *callbackData)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSubmitDebugUtilsMessageEXT"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrSubmitDebugUtilsMessageEXT");
@ -78,6 +88,8 @@ oxr_xrSubmitDebugUtilsMessageEXT(XrInstance instance,
XrResult XrResult
oxr_xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo) oxr_xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionBeginDebugUtilsLabelRegionEXT"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionBeginDebugUtilsLabelRegionEXT");
@ -89,6 +101,8 @@ oxr_xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, const XrDebugUtils
XrResult XrResult
oxr_xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) oxr_xrSessionEndDebugUtilsLabelRegionEXT(XrSession session)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionEndDebugUtilsLabelRegionEXT"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionEndDebugUtilsLabelRegionEXT");
@ -100,6 +114,8 @@ oxr_xrSessionEndDebugUtilsLabelRegionEXT(XrSession session)
XrResult XrResult
oxr_xrSessionInsertDebugUtilsLabelEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo) oxr_xrSessionInsertDebugUtilsLabelEXT(XrSession session, const XrDebugUtilsLabelEXT *labelInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionInsertDebugUtilsLabelEXT"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrSessionInsertDebugUtilsLabelEXT");

View file

@ -10,6 +10,7 @@
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -39,6 +40,8 @@ oxr_xrEnumerateInstanceExtensionProperties(const char *layerName,
uint32_t *propertyCountOutput, uint32_t *propertyCountOutput,
XrExtensionProperties *properties) XrExtensionProperties *properties)
{ {
OXR_TRACE_MARKER();
struct oxr_logger log; struct oxr_logger log;
oxr_log_init(&log, "xrEnumerateInstanceExtensionProperties"); oxr_log_init(&log, "xrEnumerateInstanceExtensionProperties");
@ -94,6 +97,8 @@ oxr_check_android_extensions(struct oxr_logger *log, const XrInstanceCreateInfo
XrResult XrResult
oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo, XrInstance *out_instance) oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo, XrInstance *out_instance)
{ {
OXR_TRACE_MARKER();
XrResult ret; XrResult ret;
struct oxr_logger log; struct oxr_logger log;
oxr_log_init(&log, "xrCreateInstance"); oxr_log_init(&log, "xrCreateInstance");
@ -160,6 +165,8 @@ oxr_xrCreateInstance(const XrInstanceCreateInfo *createInfo, XrInstance *out_ins
XrResult XrResult
oxr_xrDestroyInstance(XrInstance instance) oxr_xrDestroyInstance(XrInstance instance)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrDestroyInstance"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrDestroyInstance");
@ -170,6 +177,8 @@ oxr_xrDestroyInstance(XrInstance instance)
XrResult XrResult
oxr_xrGetInstanceProperties(XrInstance instance, XrInstanceProperties *instanceProperties) oxr_xrGetInstanceProperties(XrInstance instance, XrInstanceProperties *instanceProperties)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetInstanceProperties"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetInstanceProperties");
@ -180,6 +189,8 @@ oxr_xrGetInstanceProperties(XrInstance instance, XrInstanceProperties *instanceP
XrResult XrResult
oxr_xrPollEvent(XrInstance instance, XrEventDataBuffer *eventData) oxr_xrPollEvent(XrInstance instance, XrEventDataBuffer *eventData)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrPollEvent"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrPollEvent");
@ -191,6 +202,8 @@ oxr_xrPollEvent(XrInstance instance, XrEventDataBuffer *eventData)
XrResult XrResult
oxr_xrResultToString(XrInstance instance, XrResult value, char buffer[XR_MAX_RESULT_STRING_SIZE]) oxr_xrResultToString(XrInstance instance, XrResult value, char buffer[XR_MAX_RESULT_STRING_SIZE])
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrResultToString"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrResultToString");
@ -211,6 +224,8 @@ oxr_xrResultToString(XrInstance instance, XrResult value, char buffer[XR_MAX_RES
XrResult XrResult
oxr_xrStructureTypeToString(XrInstance instance, XrStructureType value, char buffer[XR_MAX_STRUCTURE_NAME_SIZE]) oxr_xrStructureTypeToString(XrInstance instance, XrStructureType value, char buffer[XR_MAX_STRUCTURE_NAME_SIZE])
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrStructureTypeToString"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrStructureTypeToString");
@ -229,6 +244,8 @@ oxr_xrStructureTypeToString(XrInstance instance, XrStructureType value, char buf
XrResult XrResult
oxr_xrStringToPath(XrInstance instance, const char *pathString, XrPath *out_path) oxr_xrStringToPath(XrInstance instance, const char *pathString, XrPath *out_path)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
XrResult ret; XrResult ret;
@ -254,6 +271,8 @@ XrResult
oxr_xrPathToString( oxr_xrPathToString(
XrInstance instance, XrPath path, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer) XrInstance instance, XrPath path, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
const char *str; const char *str;
@ -283,6 +302,8 @@ oxr_xrPathToString(
XrResult XrResult
oxr_xrConvertTimespecTimeToTimeKHR(XrInstance instance, const struct timespec *timespecTime, XrTime *time) oxr_xrConvertTimespecTimeToTimeKHR(XrInstance instance, const struct timespec *timespecTime, XrTime *time)
{ {
OXR_TRACE_MARKER();
//! @todo do we need to check and see if this extension was //! @todo do we need to check and see if this extension was
//! enabled first? //! enabled first?
struct oxr_instance *inst; struct oxr_instance *inst;
@ -297,6 +318,8 @@ oxr_xrConvertTimespecTimeToTimeKHR(XrInstance instance, const struct timespec *t
XrResult XrResult
oxr_xrConvertTimeToTimespecTimeKHR(XrInstance instance, XrTime time, struct timespec *timespecTime) oxr_xrConvertTimeToTimespecTimeKHR(XrInstance instance, XrTime time, struct timespec *timespecTime)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrConvertTimeToTimespecTimeKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrConvertTimeToTimespecTimeKHR");

View file

@ -15,6 +15,7 @@
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -28,6 +29,8 @@
XrResult XrResult
oxr_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *out_session) oxr_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *out_session)
{ {
OXR_TRACE_MARKER();
XrResult ret; XrResult ret;
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_session *sess, **link; struct oxr_session *sess, **link;
@ -59,6 +62,8 @@ oxr_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo,
XrResult XrResult
oxr_xrDestroySession(XrSession session) oxr_xrDestroySession(XrSession session)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess, **link; struct oxr_session *sess, **link;
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
@ -78,6 +83,8 @@ oxr_xrDestroySession(XrSession session)
XrResult XrResult
oxr_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo) oxr_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrBeginSession"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrBeginSession");
@ -90,6 +97,8 @@ oxr_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo)
XrResult XrResult
oxr_xrEndSession(XrSession session) oxr_xrEndSession(XrSession session)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEndSession"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEndSession");
@ -100,6 +109,8 @@ oxr_xrEndSession(XrSession session)
XrResult XrResult
oxr_xrWaitFrame(XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrameState *frameState) oxr_xrWaitFrame(XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrameState *frameState)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrWaitFrame"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrWaitFrame");
@ -113,6 +124,8 @@ oxr_xrWaitFrame(XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrame
XrResult XrResult
oxr_xrBeginFrame(XrSession session, const XrFrameBeginInfo *frameBeginInfo) oxr_xrBeginFrame(XrSession session, const XrFrameBeginInfo *frameBeginInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrBeginFrame"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrBeginFrame");
@ -125,6 +138,8 @@ oxr_xrBeginFrame(XrSession session, const XrFrameBeginInfo *frameBeginInfo)
XrResult XrResult
oxr_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo) oxr_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEndFrame"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEndFrame");
@ -136,6 +151,8 @@ oxr_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo)
XrResult XrResult
oxr_xrRequestExitSession(XrSession session) oxr_xrRequestExitSession(XrSession session)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrRequestExitSession"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrRequestExitSession");
@ -151,6 +168,8 @@ oxr_xrLocateViews(XrSession session,
uint32_t *viewCountOutput, uint32_t *viewCountOutput,
XrView *views) XrView *views)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_space *spc; struct oxr_space *spc;
struct oxr_logger log; struct oxr_logger log;
@ -184,6 +203,8 @@ oxr_xrGetVisibilityMaskKHR(XrSession session,
XrVisibilityMaskTypeKHR visibilityMaskType, XrVisibilityMaskTypeKHR visibilityMaskType,
XrVisibilityMaskKHR *visibilityMask) XrVisibilityMaskKHR *visibilityMask)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrGetVisibilityMaskKHR"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrGetVisibilityMaskKHR");
@ -207,6 +228,8 @@ oxr_xrPerfSettingsSetPerformanceLevelEXT(XrSession session,
XrPerfSettingsDomainEXT domain, XrPerfSettingsDomainEXT domain,
XrPerfSettingsLevelEXT level) XrPerfSettingsLevelEXT level)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrPerfSettingsSetPerformanceLevelEXT"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrPerfSettingsSetPerformanceLevelEXT");
@ -232,6 +255,8 @@ oxr_xrThermalGetTemperatureTrendEXT(XrSession session,
float *tempHeadroom, float *tempHeadroom,
float *tempSlope) float *tempSlope)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrThermalGetTemperatureTrendEXT"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrThermalGetTemperatureTrendEXT");

View file

@ -9,8 +9,10 @@
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "math/m_api.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "math/m_api.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -28,6 +30,8 @@
XrResult XrResult
oxr_xrCreateActionSpace(XrSession session, const XrActionSpaceCreateInfo *createInfo, XrSpace *space) oxr_xrCreateActionSpace(XrSession session, const XrActionSpaceCreateInfo *createInfo, XrSpace *space)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_action *act; struct oxr_action *act;
struct oxr_logger log; struct oxr_logger log;
@ -59,6 +63,8 @@ oxr_xrEnumerateReferenceSpaces(XrSession session,
uint32_t *spaceCountOutput, uint32_t *spaceCountOutput,
XrReferenceSpaceType *spaces) XrReferenceSpaceType *spaces)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEnumerateReferenceSpaces"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEnumerateReferenceSpaces");
@ -70,6 +76,8 @@ oxr_xrEnumerateReferenceSpaces(XrSession session,
XrResult XrResult
oxr_xrGetReferenceSpaceBoundsRect(XrSession session, XrReferenceSpaceType referenceSpaceType, XrExtent2Df *bounds) oxr_xrGetReferenceSpaceBoundsRect(XrSession session, XrReferenceSpaceType referenceSpaceType, XrExtent2Df *bounds)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrGetReferenceSpaceBoundsRect"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrGetReferenceSpaceBoundsRect");
@ -97,6 +105,8 @@ oxr_xrGetReferenceSpaceBoundsRect(XrSession session, XrReferenceSpaceType refere
XrResult XrResult
oxr_xrCreateReferenceSpace(XrSession session, const XrReferenceSpaceCreateInfo *createInfo, XrSpace *out_space) oxr_xrCreateReferenceSpace(XrSession session, const XrReferenceSpaceCreateInfo *createInfo, XrSpace *out_space)
{ {
OXR_TRACE_MARKER();
XrResult ret; XrResult ret;
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_space *spc = NULL; struct oxr_space *spc = NULL;
@ -118,6 +128,8 @@ oxr_xrCreateReferenceSpace(XrSession session, const XrReferenceSpaceCreateInfo *
XrResult XrResult
oxr_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation *location) oxr_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation *location)
{ {
OXR_TRACE_MARKER();
struct oxr_space *spc; struct oxr_space *spc;
struct oxr_space *baseSpc; struct oxr_space *baseSpc;
struct oxr_logger log; struct oxr_logger log;
@ -137,6 +149,8 @@ oxr_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation
XrResult XrResult
oxr_xrDestroySpace(XrSpace space) oxr_xrDestroySpace(XrSpace space)
{ {
OXR_TRACE_MARKER();
struct oxr_space *spc; struct oxr_space *spc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SPACE_AND_INIT_LOG(&log, space, spc, "xrDestroySpace"); OXR_VERIFY_SPACE_AND_INIT_LOG(&log, space, spc, "xrDestroySpace");

View file

@ -10,6 +10,7 @@
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -30,6 +31,8 @@ oxr_xrEnumerateSwapchainFormats(XrSession session,
uint32_t *formatCountOutput, uint32_t *formatCountOutput,
int64_t *formats) int64_t *formats)
{ {
OXR_TRACE_MARKER();
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEnumerateSwapchainFormats"); OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrEnumerateSwapchainFormats");
@ -40,6 +43,8 @@ oxr_xrEnumerateSwapchainFormats(XrSession session,
XrResult XrResult
oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo, XrSwapchain *out_swapchain) oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo, XrSwapchain *out_swapchain)
{ {
OXR_TRACE_MARKER();
XrResult ret; XrResult ret;
struct oxr_session *sess; struct oxr_session *sess;
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
@ -103,6 +108,8 @@ oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo
XrResult XrResult
oxr_xrDestroySwapchain(XrSwapchain swapchain) oxr_xrDestroySwapchain(XrSwapchain swapchain)
{ {
OXR_TRACE_MARKER();
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrDestroySwapchain"); OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrDestroySwapchain");
@ -116,6 +123,8 @@ oxr_xrEnumerateSwapchainImages(XrSwapchain swapchain,
uint32_t *imageCountOutput, uint32_t *imageCountOutput,
XrSwapchainImageBaseHeader *images) XrSwapchainImageBaseHeader *images)
{ {
OXR_TRACE_MARKER();
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrEnumerateSwapchainImages"); OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrEnumerateSwapchainImages");
@ -137,6 +146,8 @@ oxr_xrEnumerateSwapchainImages(XrSwapchain swapchain,
XrResult XrResult
oxr_xrAcquireSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageAcquireInfo *acquireInfo, uint32_t *index) oxr_xrAcquireSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageAcquireInfo *acquireInfo, uint32_t *index)
{ {
OXR_TRACE_MARKER();
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrAcquireSwapchainImage"); OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrAcquireSwapchainImage");
@ -149,6 +160,8 @@ oxr_xrAcquireSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageAcquire
XrResult XrResult
oxr_xrWaitSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageWaitInfo *waitInfo) oxr_xrWaitSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageWaitInfo *waitInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrWaitSwapchainImage"); OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrWaitSwapchainImage");
@ -160,6 +173,8 @@ oxr_xrWaitSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageWaitInfo *
XrResult XrResult
oxr_xrReleaseSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageReleaseInfo *releaseInfo) oxr_xrReleaseSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageReleaseInfo *releaseInfo)
{ {
OXR_TRACE_MARKER();
struct oxr_swapchain *sc; struct oxr_swapchain *sc;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrReleaseSwapchainImage"); OXR_VERIFY_SWAPCHAIN_AND_INIT_LOG(&log, swapchain, sc, "xrReleaseSwapchainImage");

View file

@ -15,7 +15,9 @@
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "xrt/xrt_gfx_gl.h" #include "xrt/xrt_gfx_gl.h"
#include "xrt/xrt_gfx_gles.h" #include "xrt/xrt_gfx_gles.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_trace_marker.h"
#include "oxr_objects.h" #include "oxr_objects.h"
#include "oxr_logger.h" #include "oxr_logger.h"
@ -41,6 +43,8 @@
XrResult XrResult
oxr_xrGetSystem(XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId *systemId) oxr_xrGetSystem(XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId *systemId)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetSystem"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetSystem");
@ -64,6 +68,8 @@ oxr_xrGetSystem(XrInstance instance, const XrSystemGetInfo *getInfo, XrSystemId
XrResult XrResult
oxr_xrGetSystemProperties(XrInstance instance, XrSystemId systemId, XrSystemProperties *properties) oxr_xrGetSystemProperties(XrInstance instance, XrSystemId systemId, XrSystemProperties *properties)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetSystemProperties"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetSystemProperties");
@ -80,6 +86,8 @@ oxr_xrEnumerateViewConfigurations(XrInstance instance,
uint32_t *viewConfigurationTypeCountOutput, uint32_t *viewConfigurationTypeCountOutput,
XrViewConfigurationType *viewConfigurationTypes) XrViewConfigurationType *viewConfigurationTypes)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateViewConfigurations"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateViewConfigurations");
@ -97,6 +105,8 @@ oxr_xrEnumerateEnvironmentBlendModes(XrInstance instance,
uint32_t *environmentBlendModeCountOutput, uint32_t *environmentBlendModeCountOutput,
XrEnvironmentBlendMode *environmentBlendModes) XrEnvironmentBlendMode *environmentBlendModes)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateEnvironmentBlendModes"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateEnvironmentBlendModes");
@ -120,6 +130,8 @@ oxr_xrGetViewConfigurationProperties(XrInstance instance,
XrViewConfigurationType viewConfigurationType, XrViewConfigurationType viewConfigurationType,
XrViewConfigurationProperties *configurationProperties) XrViewConfigurationProperties *configurationProperties)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetViewConfigurationProperties"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetViewConfigurationProperties");
@ -137,6 +149,8 @@ oxr_xrEnumerateViewConfigurationViews(XrInstance instance,
uint32_t *viewCountOutput, uint32_t *viewCountOutput,
XrViewConfigurationView *views) XrViewConfigurationView *views)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateViewConfigurationViews"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrEnumerateViewConfigurationViews");
@ -160,6 +174,8 @@ oxr_xrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance,
XrSystemId systemId, XrSystemId systemId,
XrGraphicsRequirementsOpenGLESKHR *graphicsRequirements) XrGraphicsRequirementsOpenGLESKHR *graphicsRequirements)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetOpenGLESGraphicsRequirementsKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetOpenGLESGraphicsRequirementsKHR");
@ -194,6 +210,8 @@ oxr_xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance,
XrSystemId systemId, XrSystemId systemId,
XrGraphicsRequirementsOpenGLKHR *graphicsRequirements) XrGraphicsRequirementsOpenGLKHR *graphicsRequirements)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetOpenGLGraphicsRequirementsKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetOpenGLGraphicsRequirementsKHR");
@ -230,6 +248,8 @@ oxr_xrGetVulkanInstanceExtensionsKHR(XrInstance instance,
uint32_t *namesCountOutput, uint32_t *namesCountOutput,
char *namesString) char *namesString)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanInstanceExtensionsKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanInstanceExtensionsKHR");
@ -245,6 +265,8 @@ oxr_xrGetVulkanDeviceExtensionsKHR(XrInstance instance,
uint32_t *namesCountOutput, uint32_t *namesCountOutput,
char *namesString) char *namesString)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanDeviceExtensionsKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanDeviceExtensionsKHR");
@ -263,6 +285,8 @@ oxr_xrGetVulkanGraphicsDeviceKHR(XrInstance instance,
VkInstance vkInstance, VkInstance vkInstance,
VkPhysicalDevice *vkPhysicalDevice) VkPhysicalDevice *vkPhysicalDevice)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanGraphicsDeviceKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanGraphicsDeviceKHR");
@ -294,6 +318,8 @@ oxr_xrGetVulkanGraphicsRequirementsKHR(XrInstance instance,
XrSystemId systemId, XrSystemId systemId,
XrGraphicsRequirementsVulkanKHR *graphicsRequirements) XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
{ {
OXR_TRACE_MARKER();
struct oxr_instance *inst; struct oxr_instance *inst;
struct oxr_logger log; struct oxr_logger log;
OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanGraphicsRequirementsKHR"); OXR_VERIFY_INSTANCE_AND_INIT_LOG(&log, instance, inst, "xrGetVulkanGraphicsRequirementsKHR");