Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1028 - in trunk: Engine/PixelSamplers Image


Chronological Thread 
  • From: sparker@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1028 - in trunk: Engine/PixelSamplers Image
  • Date: Sat, 29 Apr 2006 21:45:15 -0600 (MDT)

Author: sparker
Date: Sat Apr 29 21:45:14 2006
New Revision: 1028

Modified:
   trunk/Engine/PixelSamplers/NullSampler.cc
   trunk/Image/SimpleImage_special.cc
Log:
Only need to be aligned at multiples of 4, not 16


Modified: trunk/Engine/PixelSamplers/NullSampler.cc
==============================================================================
--- trunk/Engine/PixelSamplers/NullSampler.cc   (original)
+++ trunk/Engine/PixelSamplers/NullSampler.cc   Sat Apr 29 21:45:14 2006
@@ -34,7 +34,7 @@
 void NullSampler::renderFragment(const RenderContext&, Fragment& fragment)
 {
 #if MANTA_SSE
-  if(((fragment.pixelBegin | fragment.pixelEnd) & 0xf) == 0){
+  if(((fragment.pixelBegin | fragment.pixelEnd) & 0x3) == 0){
     __m128 r = _mm_set1_ps( 0.3 );
     __m128 g = _mm_set1_ps( 0.6 );
     __m128 b = _mm_set1_ps( 0.9 );

Modified: trunk/Image/SimpleImage_special.cc
==============================================================================
--- trunk/Image/SimpleImage_special.cc  (original)
+++ trunk/Image/SimpleImage_special.cc  Sat Apr 29 21:45:14 2006
@@ -15,7 +15,7 @@
     ARGB8Pixel* pix = 
eyeStart[fragment.getWhichEye(b)][fragment.getY(b)]+fragment.getX(b);
 #if MANTA_SSE
     // If the fragment and the pixel are on an aligned boundary, use SSE
-    if(((fragment.pixelBegin | fragment.pixelEnd) & 0xf) == 0){
+    if(((fragment.pixelBegin | fragment.pixelEnd) & 0x3) == 0){
       // Aligned for SSE
       __m128 scale = _mm_set1_ps( 255.99999f );
       int f = fragment.end()-3;




  • [MANTA] r1028 - in trunk: Engine/PixelSamplers Image, sparker, 04/29/2006

Archive powered by MHonArc 2.6.16.

Top of page