The open source OpenXR runtime
0
fork

Configure Feed

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

ipc: Add support for xrt_swapchain_create_properties

+35
+12
src/xrt/ipc/client/ipc_client_compositor.c
··· 251 251 * 252 252 */ 253 253 254 + static xrt_result_t 255 + ipc_compositor_get_swapchain_create_properties(struct xrt_compositor *xc, 256 + const struct xrt_swapchain_create_info *info, 257 + struct xrt_swapchain_create_properties *xsccp) 258 + { 259 + struct ipc_client_compositor *icc = ipc_client_compositor(xc); 260 + 261 + IPC_CALL_CHK(ipc_call_swapchain_get_properties(icc->ipc_c, info, xsccp)); 262 + 263 + return res; 264 + } 254 265 255 266 static xrt_result_t 256 267 swapchain_server_create(struct ipc_client_compositor *icc, ··· 781 792 static void 782 793 ipc_compositor_init(struct ipc_client_compositor *icc, struct xrt_compositor_native **out_xcn) 783 794 { 795 + icc->base.base.get_swapchain_create_properties = ipc_compositor_get_swapchain_create_properties; 784 796 icc->base.base.create_swapchain = ipc_compositor_swapchain_create; 785 797 icc->base.base.import_swapchain = ipc_compositor_swapchain_import; 786 798 icc->base.base.create_semaphore = ipc_compositor_semaphore_create;
+14
src/xrt/ipc/server/ipc_server_handler.c
··· 731 731 } 732 732 733 733 xrt_result_t 734 + ipc_handle_swapchain_get_properties(volatile struct ipc_client_state *ics, 735 + const struct xrt_swapchain_create_info *info, 736 + struct xrt_swapchain_create_properties *xsccp) 737 + { 738 + IPC_TRACE_MARKER(); 739 + 740 + if (ics->xc == NULL) { 741 + return XRT_ERROR_IPC_SESSION_NOT_CREATED; 742 + } 743 + 744 + return xrt_comp_get_swapchain_create_properties(ics->xc, info, xsccp); 745 + } 746 + 747 + xrt_result_t 734 748 ipc_handle_swapchain_create(volatile struct ipc_client_state *ics, 735 749 const struct xrt_swapchain_create_info *info, 736 750 uint32_t *out_id,
+9
src/xrt/ipc/shared/proto.json
··· 130 130 ] 131 131 }, 132 132 133 + "swapchain_get_properties": { 134 + "in": [ 135 + {"name": "info", "type": "const struct xrt_swapchain_create_info"} 136 + ], 137 + "out": [ 138 + {"name": "xsccp", "type": "struct xrt_swapchain_create_properties"} 139 + ] 140 + }, 141 + 133 142 "swapchain_create": { 134 143 "in": [ 135 144 {"name": "info", "type": "const struct xrt_swapchain_create_info"}