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_compute_distortion result in server handler

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

authored by

Simon Zeni and committed by
Korcan Hussein
d867a4c2 07694745

+2 -9
+1 -3
src/xrt/ipc/client/ipc_client_hmd.c
··· 184 184 ipc_client_hmd_t *ich = ipc_client_hmd(xdev); 185 185 xrt_result_t xret; 186 186 187 - bool ret; 188 187 xret = ipc_call_device_compute_distortion( // 189 188 ich->ipc_c, // 190 189 ich->device_id, // 191 190 view, // 192 191 u, // 193 192 v, // 194 - &ret, // 195 193 out_result); // 196 194 IPC_CHK_WITH_RET(ich->ipc_c, xret, "ipc_call_device_compute_distortion", false); 197 195 198 - return ret; 196 + return xret == XRT_SUCCESS; 199 197 } 200 198 201 199 static bool
+1 -5
src/xrt/ipc/server/ipc_server_handler.c
··· 2070 2070 uint32_t view, 2071 2071 float u, 2072 2072 float v, 2073 - bool *out_ret, 2074 2073 struct xrt_uv_triplet *out_triplet) 2075 2074 { 2076 2075 // To make the code a bit more readable. ··· 2078 2077 struct xrt_device *xdev = NULL; 2079 2078 GET_XDEV_OR_RETURN(ics, device_id, xdev); 2080 2079 2081 - bool ret = xrt_device_compute_distortion(xdev, view, u, v, out_triplet); 2082 - *out_ret = ret; 2083 - 2084 - return XRT_SUCCESS; 2080 + return xrt_device_compute_distortion(xdev, view, u, v, out_triplet); 2085 2081 } 2086 2082 2087 2083 xrt_result_t
-1
src/xrt/ipc/shared/proto.json
··· 460 460 {"name": "v", "type": "float"} 461 461 ], 462 462 "out": [ 463 - {"name": "ret", "type": "bool"}, 464 463 {"name": "triplet", "type": "struct xrt_uv_triplet"} 465 464 ] 466 465 },