summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2004-10-02 01:28:38 +0000
committerEric Anholt <[email protected]>2004-10-02 01:28:38 +0000
commitfc552c530fa663b47961b947be5600a061a0b116 (patch)
tree49a400aa6b937735c3564d004450df1e7491b54f
parent5b73371e05e48d1b835579b8db81b12df203ce67 (diff)
Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the
r128 code.
-rw-r--r--src/mesa/tnl_dd/t_dd_triemit.h7
1 files changed, 7 insertions, 0 deletions
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 { \