From fc552c530fa663b47961b947be5600a061a0b116 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 2 Oct 2004 01:28:38 +0000 Subject: Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the r128 code. --- src/mesa/tnl_dd/t_dd_triemit.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/tnl_dd/t_dd_triemit.h') diff --git a/src/mesa/tnl_dd/t_dd_triemit.h b/src/mesa/tnl_dd/t_dd_triemit.h index 2f5bcee7ec4..c99e6e68661 100644 --- a/src/mesa/tnl_dd/t_dd_triemit.h +++ b/src/mesa/tnl_dd/t_dd_triemit.h @@ -16,6 +16,13 @@ do { \ "D" ((long)vb), \ "S" ((long)v) ); \ } while (0) +#elif defined(HAVE_LE32_VERTS) +#define COPY_DWORDS( j, vb, vertsize, v ) \ +do { \ + for ( j = 0 ; j < vertsize ; j++ ) \ + vb[j] = CPU_TO_LE32(((GLuint *)v)[j]); \ + vb += vertsize; \ +} while (0) #else #define COPY_DWORDS( j, vb, vertsize, v ) \ do { \ -- cgit v1.2.3