[Bf-blender-cvs] [6ad04a031c0] master: Cycles: Fix floor intrinsic for ARM Neon

Lukas Stockner noreply at git.blender.org
Mon Oct 17 01:16:15 CEST 2022


Commit: 6ad04a031c0f4375769a9a6a47942905be544992
Author: Lukas Stockner
Date:   Mon Oct 17 00:56:19 2022 +0200
Branches: master
https://developer.blender.org/rB6ad04a031c0f4375769a9a6a47942905be544992

Cycles: Fix floor intrinsic for ARM Neon

===================================================================

M	intern/cycles/util/ssef.h

===================================================================

diff --git a/intern/cycles/util/ssef.h b/intern/cycles/util/ssef.h
index 7f9e332a997..1e2bfa90354 100644
--- a/intern/cycles/util/ssef.h
+++ b/intern/cycles/util/ssef.h
@@ -523,7 +523,7 @@ __forceinline const ssef round_zero(const ssef &a)
 __forceinline const ssef floor(const ssef &a)
 {
 #    ifdef __KERNEL_NEON__
-  return vrndnq_f32(a);
+  return vrndmq_f32(a);
 #    else
   return _mm_round_ps(a, _MM_FROUND_TO_NEG_INF);
 #    endif



More information about the Bf-blender-cvs mailing list