summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuScript.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-10-03 14:57:51 -0700
committerStephen Hines <srhines@google.com>2013-10-03 14:57:51 -0700
commit4da42506a08ed7fdb61615b3524f111df939fc6e (patch)
tree281d68b0660eaebf0354e48d450c6407cf461034 /cpu_ref/rsCpuScript.cpp
parent319a284c19a97b53e9144af512ce512b9d72e7cc (diff)
Remove references/use of ARCH_X86_HAVE_* in frameworks/rs.
Bug: 11048298 These SSE-related defines are unnecessary because all x86 Android devices have these features. We switch all the checks to __i386__ instead. This also fixes an issue where non-ARM bitcode files were being created with the ARM defines present. This is problematic when we then try to do things that would be arch-specific (i.e. the presence of SSE-enabled functions for clamp(), ...). This also cleans up the different target architecture specified in the x86 bitcode files so that they match the platform target (i686-unknown-linux). Change-Id: I4776bbdce360de26e8a00e05d2cb19341d94a173
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r--cpu_ref/rsCpuScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index 06693261..c956f438 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -396,8 +396,8 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir,
return false;
}
-#if defined(ARCH_X86_HAVE_SSE2)
- // SSE2- or above capable devices will use an optimized library.
+#if defined(__i386__)
+ // x86 devices will use an optimized library.
core_lib = bcc::RSInfo::LibCLCoreX86Path;
#endif