The open source OpenXR runtime
0
fork

Configure Feed

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

ipc: return xrt_device_get_view_poses result in server handler

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2365>

+16 -24
+16 -24
src/xrt/ipc/server/ipc_server_handler.c
··· 1991 1991 struct xrt_fov fovs[IPC_MAX_RAW_VIEWS]; 1992 1992 struct xrt_pose poses[IPC_MAX_RAW_VIEWS]; 1993 1993 1994 - xrt_device_get_view_poses( // 1995 - xdev, // 1996 - fallback_eye_relation, // 1997 - at_timestamp_ns, // 1998 - view_count, // 1999 - &reply.head_relation, // 2000 - fovs, // 2001 - poses); // 2002 - 2003 - /* 2004 - * Operation ok, head_relation has already been put in the reply 2005 - * struct, so we don't need to send that manually. 2006 - */ 2007 - reply.result = XRT_SUCCESS; 1994 + reply.result = xrt_device_get_view_poses( // 1995 + xdev, // 1996 + fallback_eye_relation, // 1997 + at_timestamp_ns, // 1998 + view_count, // 1999 + &reply.head_relation, // 2000 + fovs, // 2001 + poses); // 2008 2002 2009 2003 /* 2010 2004 * This isn't really needed, but demonstrates the server sending the ··· 2052 2046 // To make the code a bit more readable. 2053 2047 uint32_t device_id = id; 2054 2048 struct xrt_device *xdev = get_xdev(ics, device_id); 2055 - xrt_device_get_view_poses( // 2056 - xdev, // 2057 - default_eye_relation, // 2058 - at_timestamp_ns, // 2059 - view_count, // 2060 - &out_info->head_relation, // 2061 - out_info->fovs, // 2062 - out_info->poses); // 2063 - 2064 - return XRT_SUCCESS; 2049 + return xrt_device_get_view_poses( // 2050 + xdev, // 2051 + default_eye_relation, // 2052 + at_timestamp_ns, // 2053 + view_count, // 2054 + &out_info->head_relation, // 2055 + out_info->fovs, // 2056 + out_info->poses); // 2065 2057 } 2066 2058 2067 2059 xrt_result_t