diff options
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_tris.c | 9 |
1 files changed, 9 insertions, 0 deletions
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,12 +43,20 @@ #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 { \ int j; \ @@ -68,6 +76,7 @@ vb += vertsize; \ } while (0) #endif +#endif static void via_draw_triangle(struct via_context *vmesa, viaVertexPtr v0, |