From aa5055261f09b11bca97c39b644085a5ef5f4af6 Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Thu, 24 Feb 2022 13:29:28 +0300 Subject: [PATCH] Merge pull request #21652 from savuor:fix/hash_tsdf_normals_simd32_compilation Fix HashTSDF compilation * big SIMD compilation fix (try 1) * fixing compilation, try 2 --- modules/3d/src/rgbd/hash_tsdf_functions.cpp | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/3d/src/rgbd/hash_tsdf_functions.cpp b/modules/3d/src/rgbd/hash_tsdf_functions.cpp index 6f63721e64..ccef82ed37 100644 --- a/modules/3d/src/rgbd/hash_tsdf_functions.cpp +++ b/modules/3d/src/rgbd/hash_tsdf_functions.cpp @@ -787,14 +787,14 @@ Point3f getNormalVoxel( #else # if CV_SIMD_WIDTH >= 32 - v_float32x8 cxp = v_lut(vals, idxxp); - v_float32x8 cxn = v_lut(vals, idxxn); + v_float32x8 cxp = v_lut(vals, v256_load(idxxp)); + v_float32x8 cxn = v_lut(vals, v256_load(idxxn)); - v_float32x8 cyp = v_lut(vals, idxyp); - v_float32x8 cyn = v_lut(vals, idxyn); + v_float32x8 cyp = v_lut(vals, v256_load(idxyp)); + v_float32x8 cyn = v_lut(vals, v256_load(idxyn)); - v_float32x8 czp = v_lut(vals, idxzp); - v_float32x8 czn = v_lut(vals, idxzn); + v_float32x8 czp = v_lut(vals, v256_load(idxzp)); + v_float32x8 czn = v_lut(vals, v256_load(idxzn)); v_float32x8 vcxv = cxn - cxp; v_float32x8 vcyv = cyn - cyp; @@ -930,14 +930,14 @@ Point3f ocl_getNormalVoxel( #else # if CV_SIMD_WIDTH >= 32 - v_float32x8 cxp = v_lut(vals, idxxp); - v_float32x8 cxn = v_lut(vals, idxxn); + v_float32x8 cxp = v_lut(vals, v256_load(idxxp)); + v_float32x8 cxn = v_lut(vals, v256_load(idxxn)); - v_float32x8 cyp = v_lut(vals, idxyp); - v_float32x8 cyn = v_lut(vals, idxyn); + v_float32x8 cyp = v_lut(vals, v256_load(idxyp)); + v_float32x8 cyn = v_lut(vals, v256_load(idxyn)); - v_float32x8 czp = v_lut(vals, idxzp); - v_float32x8 czn = v_lut(vals, idxzn); + v_float32x8 czp = v_lut(vals, v256_load(idxzp)); + v_float32x8 czn = v_lut(vals, v256_load(idxzn)); v_float32x8 vcxv = cxn - cxp; v_float32x8 vcyv = cyn - cyp;