The open source OpenXR runtime
0
fork

Configure Feed

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

ipc: 32/64bits compatibility

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

authored by

Patrick Nicolas and committed by
Marge Bot
cb5f527c 3363ba05

+11 -6
+6 -4
src/xrt/include/xrt/xrt_compositor.h
··· 20 20 #include "xrt/xrt_config_have.h" 21 21 #include "xrt/xrt_windows.h" 22 22 23 + #include <stdalign.h> 24 + 23 25 #if defined(XRT_HAVE_D3D11) 24 26 #include <d3d11.h> 25 27 #elif defined(XRT_DOXYGEN) ··· 408 410 * The layer may be displayed after this point, but must never be 409 411 * displayed before. 410 412 */ 411 - int64_t timestamp; 413 + alignas(8) int64_t timestamp; 412 414 413 415 /*! 414 416 * Composition flags ··· 476 478 */ 477 479 struct xrt_layer_frame_data 478 480 { 479 - int64_t frame_id; 481 + alignas(8) int64_t frame_id; 480 482 int64_t display_time_ns; 481 483 enum xrt_blend_mode env_blend_mode; 482 484 }; ··· 929 931 struct xrt_session_info 930 932 { 931 933 bool is_overlay; 932 - uint64_t flags; 934 + alignas(8) uint64_t flags; 933 935 uint32_t z_order; 934 936 }; 935 937 ··· 944 946 uint32_t format_count; 945 947 946 948 //! Supported formats, never changes. 947 - int64_t formats[XRT_MAX_SWAPCHAIN_FORMATS]; 949 + alignas(8) int64_t formats[XRT_MAX_SWAPCHAIN_FORMATS]; 948 950 949 951 //! Max texture size that GPU supports (size of a single dimension), zero means any size. 950 952 uint32_t max_texture_size;
+3 -1
src/xrt/include/xrt/xrt_device.h
··· 15 15 #include "xrt/xrt_visibility_mask.h" 16 16 #include "xrt/xrt_limits.h" 17 17 18 + #include <stdalign.h> 19 + 18 20 #ifdef __cplusplus 19 21 extern "C" { 20 22 #endif ··· 162 164 //! Is this input active. 163 165 bool active; 164 166 165 - int64_t timestamp; 167 + alignas(8) int64_t timestamp; 166 168 167 169 enum xrt_input_name name; 168 170
+2 -1
src/xrt/include/xrt/xrt_system.h
··· 15 15 #include "xrt/xrt_defines.h" 16 16 #include "xrt/xrt_device.h" 17 17 18 + #include <stdalign.h> 18 19 19 20 #ifdef __cplusplus 20 21 extern "C" { ··· 169 170 * make init easier where any cache can start at zero and be guaranteed 170 171 * to be replaced with a new @ref xrt_system_roles. 171 172 */ 172 - uint64_t generation_id; 173 + alignas(8) uint64_t generation_id; 173 174 174 175 /*! 175 176 * Index in @ref xrt_system_devices::xdevs for the user's left