[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60509] trunk/blender/intern/cycles/util/ util_system.cpp: Fix #36316: dots in cycles render on certain CPUs with 32 bit linux builds.

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Oct 2 21:00:17 CEST 2013


Revision: 60509
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60509
Author:   blendix
Date:     2013-10-02 19:00:16 +0000 (Wed, 02 Oct 2013)
Log Message:
-----------
Fix #36316: dots in cycles render on certain CPUs with 32 bit linux builds.
There is some sort of problem with the SSE2 code path, but I couldn't find
the cause, maybe a compiler bug due to the large amount of inlining? For
now I've disabled SSE2 optimizatons in 32 bit GCC builds.

Modified Paths:
--------------
    trunk/blender/intern/cycles/util/util_system.cpp

Modified: trunk/blender/intern/cycles/util/util_system.cpp
===================================================================
--- trunk/blender/intern/cycles/util/util_system.cpp	2013-10-02 18:49:32 UTC (rev 60508)
+++ trunk/blender/intern/cycles/util/util_system.cpp	2013-10-02 19:00:16 UTC (rev 60509)
@@ -116,7 +116,8 @@
 	return (sizeof(void*)*8);
 }
 
-#if defined(__x86_64__) || defined(_M_X64) || defined(i386) || defined(_M_IX86)
+/* SSE optimization disabled for now on 32 bit GCC, see bug #36316 */
+#if defined(__x86_64__) || defined(_M_X64) || ((defined(i386) || defined(_M_IX86)) && !defined(__GNUC__))
 
 struct CPUCapabilities {
 	bool x64;




More information about the Bf-blender-cvs mailing list