From: Eric Anholt Date: Sat, 2 Oct 2004 01:28:38 +0000 (+0000) Subject: Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc552c530fa663b47961b947be5600a061a0b116;p=mesa.git Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the r128 code. --- 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 { \