Cycles: Build SSE41 kernel per default, remove build option. This hopefully also...
authorThomas Dinges <blender@dingto.org>
Tue, 14 Jan 2014 21:04:32 +0000 (22:04 +0100)
committerThomas Dinges <blender@dingto.org>
Tue, 14 Jan 2014 21:04:32 +0000 (22:04 +0100)
SConstruct
build_files/scons/tools/btools.py
intern/cycles/SConscript
intern/cycles/device/CMakeLists.txt

index c4bffab661e5dc83386e658a2ddfa666d30721fc..d0af4245a560b9161a7fd1077c8c36b33db12551 100644 (file)
@@ -430,9 +430,6 @@ if env['OURPLATFORM']=='darwin':
         else:
             env['WITH_BF_OPENMP'] = 0
             print B.bc.OKGREEN + "Disabled OpenMP, not supported by compiler"
-            
-    if env['WITH_BF_CYCLES'] and env['WITH_CYCLES_OPTIMIZED_KERNEL_SSE41']:
-        print B.bc.OKGREEN + 'Using Cycles SSE 4.1 option'
 
     if env['WITH_BF_CYCLES_OSL'] == 1:
         OSX_OSL_LIBPATH = Dir(env.subst(env['BF_OSL_LIBPATH'])).abspath
index 47434e68d0d0532138c7cdd0415bc086544c479e..9ab5fce0dbd3515f6dcff6732f4137ac4e692642 100644 (file)
@@ -161,7 +161,6 @@ def validate_arguments(args, bc):
             'BUILDBOT_BRANCH',
             'WITH_BF_3DMOUSE', 'WITH_BF_STATIC3DMOUSE', 'BF_3DMOUSE', 'BF_3DMOUSE_INC', 'BF_3DMOUSE_LIB', 'BF_3DMOUSE_LIBPATH', 'BF_3DMOUSE_LIB_STATIC',
             'WITH_BF_CYCLES', 'WITH_BF_CYCLES_CUDA_BINARIES', 'BF_CYCLES_CUDA_NVCC', 'BF_CYCLES_CUDA_NVCC', 'WITH_BF_CYCLES_CUDA_THREADED_COMPILE', 'BF_CYCLES_CUDA_ENV',
-            'WITH_CYCLES_OPTIMIZED_KERNEL_SSE41',
             'WITH_BF_OIIO', 'WITH_BF_STATICOIIO', 'BF_OIIO', 'BF_OIIO_INC', 'BF_OIIO_LIB', 'BF_OIIO_LIB_STATIC', 'BF_OIIO_LIBPATH',
             'WITH_BF_OCIO', 'WITH_BF_STATICOCIO', 'BF_OCIO', 'BF_OCIO_INC', 'BF_OCIO_LIB', 'BF_OCIO_LIB_STATIC', 'BF_OCIO_LIBPATH',
             'WITH_BF_BOOST', 'WITH_BF_STATICBOOST', 'BF_BOOST', 'BF_BOOST_INC', 'BF_BOOST_LIB', 'BF_BOOST_LIB_INTERNATIONAL', 'BF_BOOST_LIB_STATIC', 'BF_BOOST_LIBPATH',
@@ -573,7 +572,6 @@ def read_opts(env, cfg, args):
         ('BF_CYCLES_CUDA_NVCC', 'CUDA nvcc compiler path', ''),
         ('BF_CYCLES_CUDA_ENV', 'preset environement nvcc will execute in', ''),
         ('BF_CYCLES_CUDA_BINARIES_ARCH', 'CUDA architectures to compile binaries for', []),
-        (BoolVariable('WITH_CYCLES_OPTIMIZED_KERNEL_SSE41', 'Enable building of an extra SSE4.1 kernel', False)),
 
         (BoolVariable('WITH_BF_OIIO', 'Build with OpenImageIO', False)),
         (BoolVariable('WITH_BF_STATICOIIO', 'Statically link to OpenImageIO', False)),
index e31fb5bed96339135bfbb273a3510fd7d943dd17..b1dfeee156079fa2176fcc51e980d94ff9d763a1 100644 (file)
@@ -93,14 +93,11 @@ else:
     sse3_cxxflags.append('-ffast-math -msse -msse2 -msse3 -mssse3 -mfpmath=sse'.split())
     sse41_cxxflags.append('-ffast-math -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse'.split())
 
-defs.append('WITH_OPTIMIZED_KERNEL')
 optim_defs = defs[:]
 
-if env['WITH_CYCLES_OPTIMIZED_KERNEL_SSE41']:
-    cycles_sse41 = cycles.Clone()
-    sse41_sources = [path.join('kernel', 'kernel_sse41.cpp')]
-    cycles_sse41.BlenderLib('bf_intern_cycles_sse41', sse41_sources, incs, optim_defs, libtype=['intern'], priority=[10], cxx_compileflags=sse41_cxxflags)
-    defs.append('WITH_CYCLES_OPTIMIZED_KERNEL_SSE41')
+cycles_sse41 = cycles.Clone()
+sse41_sources = [path.join('kernel', 'kernel_sse41.cpp')]
+cycles_sse41.BlenderLib('bf_intern_cycles_sse41', sse41_sources, incs, optim_defs, libtype=['intern'], priority=[10], cxx_compileflags=sse41_cxxflags)
 
 cycles_sse3 = cycles.Clone()
 sse3_sources = [path.join('kernel', 'kernel_sse3.cpp')]
index 825e82209aa92fe91315ca86fa57ee4cd9931643..ae3309df3d9217345f45768e4301cb43288225e1 100644 (file)
@@ -13,10 +13,6 @@ set(INC_SYS
        ${GLEW_INCLUDE_PATH}
 )
 
-if(WITH_CYCLES_OPTIMIZED_KERNEL_SSE41)
-        add_definitions(-DWITH_CYCLES_OPTIMIZED_KERNEL_SSE41=1)
-endif()        
-
 set(SRC
        device.cpp
        device_cpu.cpp