The open source OpenXR runtime
0
fork

Configure Feed

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

build: Add option to use SSE2 on 32-bit x86, and enable by default.

Fixes/works around a float comparison test failure in input transform.

+10 -2
+2 -1
CMakeLists.txt
··· 1 - # Copyright 2018-2022, Collabora, Ltd. 1 + # Copyright 2018-2023, Collabora, Ltd. 2 2 # SPDX-License-Identifier: BSL-1.0 3 3 4 4 cmake_minimum_required(VERSION 3.10.2) ··· 255 255 option_with_deps(XRT_FEATURE_STEAMVR_PLUGIN "Build SteamVR plugin" DEPENDS "NOT ANDROID") 256 256 option_with_deps(XRT_FEATURE_TRACING "Enable debug tracing on supported platforms" DEFAULT OFF DEPENDS "XRT_HAVE_PERCETTO OR XRT_HAVE_TRACY") 257 257 option_with_deps(XRT_FEATURE_WINDOW_PEEK "Enable a window that displays the content of the HMD on screen" DEPENDS XRT_HAVE_SDL2) 258 + option(XRT_FEATURE_SSE2 "Build using SSE2 instructions, if building for 32-bit x86" ON) 258 259 259 260 if (XRT_FEATURE_SERVICE) 260 261 # Disable the client debug gui by default for out-of-proc -
+8 -1
CompilerFlags.cmake
··· 1 - # Copyright 2018-2021, Collabora, Ltd. 1 + # Copyright 2018-2023, Collabora, Ltd. 2 2 # SPDX-License-Identifier: BSL-1.0 3 3 4 4 if(NOT MSVC) ··· 8 8 ) 9 9 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=int-conversion") 10 10 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter") 11 + 12 + # Use effectively ubiquitous SSE2 instead of x87 floating point 13 + # for increased reliability/consistency 14 + if(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86" AND XRT_FEATURE_SSE2) 15 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -mfpmath=sse") 16 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -mfpmath=sse") 17 + endif() 11 18 endif() 12 19 13 20 if(NOT WIN32)