aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/neon
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-10-20 14:30:56 +0200
committerMarijn Tamis <[email protected]>2017-10-20 14:36:12 +0200
commitfabb251458f4a2d6d4f87dd36038fac2774b378c (patch)
tree68a4a0ecd940dc949e0477d521d8c159968cfcd5 /NvCloth/src/neon
parentNvCloth 1.1.2 Release. (22576033) (diff)
downloadnvcloth-1.1.3.tar.xz
nvcloth-1.1.3.zip
NvCloth 1.1.3 Release. (23014067)v1.1.3
Diffstat (limited to 'NvCloth/src/neon')
-rw-r--r--NvCloth/src/neon/NeonSolverKernel.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/NvCloth/src/neon/NeonSolverKernel.cpp b/NvCloth/src/neon/NeonSolverKernel.cpp
index 4d6de68..3e16b6f 100644
--- a/NvCloth/src/neon/NeonSolverKernel.cpp
+++ b/NvCloth/src/neon/NeonSolverKernel.cpp
@@ -35,15 +35,19 @@
#include <cpu-features.h>
-namespace physx
+namespace
+{
+ const bool sNeonSupport = ANDROID_CPU_ARM_FEATURE_NEON & android_getCpuFeatures();
+}
+
+namespace nv
{
namespace cloth
{
bool neonSolverKernel(SwCloth const& cloth, SwClothData& data, SwKernelAllocator& allocator,
- IterationStateFactory& factory, PxProfileZone* profileZone)
+ IterationStateFactory& factory)
{
- return ANDROID_CPU_ARM_FEATURE_NEON & android_getCpuFeatures() &&
- (SwSolverKernel<Simd4f>(cloth, data, allocator, factory, profileZone)(), true);
+ return sNeonSupport && (SwSolverKernel<Simd4f>(cloth, data, allocator, factory)(), true);
}
}
}