Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1569 - trunk/Engine/Shadows


Chronological Thread 
  • From: boulos@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1569 - trunk/Engine/Shadows
  • Date: Fri, 27 Jul 2007 13:10:26 -0600 (MDT)

Author: boulos
Date: Fri Jul 27 13:10:25 2007
New Revision: 1569

Modified:
   trunk/Engine/Shadows/HardShadows.cc
Log:
Turning SSE back on (sorry everyone, looks like
I was debugging the shadow code and forgot this)

Also adding correct reinitialization of hitMatl


Modified: trunk/Engine/Shadows/HardShadows.cc
==============================================================================
--- trunk/Engine/Shadows/HardShadows.cc (original)
+++ trunk/Engine/Shadows/HardShadows.cc Fri Jul 27 13:10:25 2007
@@ -19,10 +19,6 @@
 using namespace Manta;
 using std::cerr;
 
-#ifdef MANTA_SSE
-#undef MANTA_SSE
-#endif
-
 ShadowAlgorithm* HardShadows::create(const vector<string>& args)
 {
   return new HardShadows(args);
@@ -143,14 +139,13 @@
 
           // The materials have already been set by the code above.
           // Don't touch minT.
-          /* TODO(boulos): I think this is probably required to actually 
reset the hitMatl properly
-
-            #if __x86_64
-            #error "too lazy"
-            #else
-            _mm_store_si128(&shadowData->hitMatl[i], _mm_setzero_si128());
-            #endif
-          */
+          // TODO(boulos): I think this is probably required to actually 
reset the hitMatl properly
+#ifdef __x86_64
+        _mm_store_ps((float*)&shadowData->hitMatl[i], _mm_setzero_ps());
+        _mm_store_ps((float*)&shadowData->hitMatl[i+2], _mm_setzero_ps());
+#else
+        _mm_store_ps((float*)&shadowData->hitMatl[i], _mm_setzero_ps());
+#endif
           last = i+3;
           if (first < 0)
             first = i;




  • [MANTA] r1569 - trunk/Engine/Shadows, boulos, 07/27/2007

Archive powered by MHonArc 2.6.16.

Top of page