From 0c4731b27ccf5faa1393102107862c28642b3d76 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 23 May 2005 12:25:43 +0000 Subject: [PATCH] Use SSE for vertex emit -- another good speedup. --- src/mesa/drivers/dri/unichrome/via_tris.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c b/src/mesa/drivers/dri/unichrome/via_tris.c index 8b9dbe873f2..0910f4e6f21 100644 --- a/src/mesa/drivers/dri/unichrome/via_tris.c +++ b/src/mesa/drivers/dri/unichrome/via_tris.c @@ -43,11 +43,19 @@ #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, -- 2.30.2