Fix AVX2 detection

This commit is contained in:
christophe-lunarg 2020-12-09 21:43:38 +01:00
parent db8b101617
commit bec41ffe51
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ if(GLM_TEST_FORCE_PURE)
message(STATUS "GLM: No SIMD instruction set")
elseif(GLM_TEST_ENABLE_SIMD_AVX2)
add_definitions(-DGLM_FORCE_PURE)
add_definitions(-DGLM_FORCE_INTRINSICS)
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_compile_options(-mavx2)

View file

@ -175,9 +175,9 @@ int test_instruction_set()
std::printf("ARM ");
if(GLM_ARCH & GLM_ARCH_NEON_BIT)
std::printf("NEON ");
if(GLM_ARCH & GLM_ARCH_AVX2)
if(GLM_ARCH & GLM_ARCH_AVX2_BIT)
std::printf("AVX2 ");
if(GLM_ARCH & GLM_ARCH_AVX)
if(GLM_ARCH & GLM_ARCH_AVX_BIT)
std::printf("AVX ");
if(GLM_ARCH & GLM_ARCH_SSE42_BIT)
std::printf("SSE4.2 ");