Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the
authorEric Anholt <anholt@FreeBSD.org>
Sat, 2 Oct 2004 01:28:38 +0000 (01:28 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Sat, 2 Oct 2004 01:28:38 +0000 (01:28 +0000)
r128 code.

src/mesa/tnl_dd/t_dd_triemit.h

index 2f5bcee7ec4e07b3e913d39520b0eddc817972e4..c99e6e686612f0fbd2b4eb0f8f8108da0396ce33 100644 (file)
@@ -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 {                                                                   \