projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b73371
)
Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the
author
Eric Anholt
<anholt@FreeBSD.org>
Sat, 2 Oct 2004 01:28:38 +0000
(
01:28
+0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/tnl_dd/t_dd_triemit.h
b/src/mesa/tnl_dd/t_dd_triemit.h
index 2f5bcee7ec4e07b3e913d39520b0eddc817972e4..c99e6e686612f0fbd2b4eb0f8f8108da0396ce33 100644
(file)
--- 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 { \