Use SSE for vertex emit -- another good speedup.
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 12:25:43 +0000 (12:25 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 12:25:43 +0000 (12:25 +0000)
src/mesa/drivers/dri/unichrome/via_tris.c

index 8b9dbe873f294b56df43ca6a1827af39dcd52ee9..0910f4e6f2148ddbfaaea192b253dba3f43e0f06 100644 (file)
 #include "via_span.h"
 #include "via_ioctl.h"
 #include "via_3d_reg.h"
+#include "via_tex.h"
 
 /***********************************************************************
  *                    Emit primitives as inline vertices               *
  ***********************************************************************/
 
+#if 1
+#define COPY_DWORDS(vb, vertsize, v)           \
+do {                                           \
+   via_sse_memcpy(vb, v, vertsize * 4);                \
+   vb += vertsize;                             \
+} while (0)
+#else
 #if 1
 #define COPY_DWORDS(vb, vertsize, v)                                   \
     do {                                                               \
@@ -68,6 +76,7 @@
         vb += vertsize;                                \
     } while (0)
 #endif
+#endif
 
 static void via_draw_triangle(struct via_context *vmesa,
                              viaVertexPtr v0,