Author: post
Date: 2009-11-29 15:33:24 +0100 (Sun, 29 Nov 2009)
New Revision: 2763

Modified:
   trunk/plugins/dcp/dcp.c
Log:
DCP: Check if pixelsize is 4 before using SSE2.

Modified: trunk/plugins/dcp/dcp.c
===================================================================
--- trunk/plugins/dcp/dcp.c     2009-11-29 14:32:21 UTC (rev 2762)
+++ trunk/plugins/dcp/dcp.c     2009-11-29 14:33:24 UTC (rev 2763)
@@ -360,7 +360,7 @@
        RS_IMAGE16 *tmp = t->tmp;
 
 #if defined (__SSE2__)
-       if (rs_detect_cpu_features() & RS_CPU_FLAG_SSE2)
+       if (tmp->pixelsize == 4  && (rs_detect_cpu_features() & 
RS_CPU_FLAG_SSE2))
        {
                render_SSE2(t);
                if (tmp->w & 3)


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to