Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1917 - trunk/Model/Groups


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1917 - trunk/Model/Groups
  • Date: Tue, 11 Dec 2007 19:06:15 -0700 (MST)

Author: thiago
Date: Tue Dec 11 19:06:15 2007
New Revision: 1917

Modified:
   trunk/Model/Groups/KDTree.cc
   trunk/Model/Groups/KDTree.h
Log:
Code added for swig broke the non-sse build. This should hopefully
fix it again (at least it compiles without swig). But I haven't
tested to see if it broke swig since I don't have that installed.

Modified: trunk/Model/Groups/KDTree.cc
==============================================================================
--- trunk/Model/Groups/KDTree.cc        (original)
+++ trunk/Model/Groups/KDTree.cc        Tue Dec 11 19:06:15 2007
@@ -2,7 +2,6 @@
 #include <Core/Exceptions/InternalError.h>
 #include <Core/Geometry/Vector.h>
 #include <Core/Math/MinMax.h>
-#include <Core/Util/Preprocessor.h>
 #include <Interface/Context.h>
 #include <Core/Thread/Time.h>
 #include <Interface/MantaInterface.h>

Modified: trunk/Model/Groups/KDTree.h
==============================================================================
--- trunk/Model/Groups/KDTree.h (original)
+++ trunk/Model/Groups/KDTree.h Tue Dec 11 19:06:15 2007
@@ -3,6 +3,7 @@
 
 #include <Core/Geometry/BBox.h>
 #include <Core/Geometry/Vector.h>
+#include <Core/Util/Preprocessor.h>
 #include <Interface/AccelerationStructure.h>
 #include <Interface/MeshTriangle.h>
 #include <Interface/RayPacket.h>
@@ -25,15 +26,14 @@
 #  endif
 #endif
 
-#ifdef MANTA_SSE
+#ifndef SWIG
 
+#ifdef MANTA_SSE
 # define MAILBOX
 
 // must be a power of two...
 # define MAILBOX_ENTRIES 64
 # define MAILBOX_MASK (MAILBOX_ENTRIES-1)
-
-#ifndef SWIG
     struct Mailbox
     {
       MANTA_ALIGN(16) int triID[MAILBOX_ENTRIES];
@@ -41,9 +41,7 @@
       inline void clear()
       {
         sse_int_t m1 = set4i(-1);
-#ifdef __INTEL_COMPILER
-#pragma unroll(4)
-#endif
+        MANTA_UNROLL(4)
         for (int i=0;i<MAILBOX_ENTRIES;i+=4)
           store44i((sse_int_t*)(triID+i),m1);
       }
@@ -56,8 +54,7 @@
         return false;
       }
     };
-#endif
-
+#endif //MANTA_SSE
 
     struct Node
     {




  • [Manta] r1917 - trunk/Model/Groups, thiago, 12/11/2007

Archive powered by MHonArc 2.6.16.

Top of page