diff options
author | Keith Whitwell <[email protected]> | 2000-12-26 05:09:27 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2000-12-26 05:09:27 +0000 |
commit | cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290 (patch) | |
tree | 45385bd755d8e3876c54b2b0113636f5ceb7976a /src/mesa/math/m_vector.c | |
parent | d1ff1f6798b003a820f5de9fad835ff352f31afe (diff) |
Major rework of tnl module
New array_cache module
Support 8 texture units in core mesa (now support 8 everywhere)
Rework core mesa statechange operations to avoid flushing on many
noop statechanges.
Diffstat (limited to 'src/mesa/math/m_vector.c')
-rw-r--r-- | src/mesa/math/m_vector.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mesa/math/m_vector.c b/src/mesa/math/m_vector.c index 4dbf68f8e0f..e582ccce37e 100644 --- a/src/mesa/math/m_vector.c +++ b/src/mesa/math/m_vector.c @@ -1,4 +1,4 @@ -/* $Id: m_vector.c,v 1.1 2000/11/16 21:05:41 keithw Exp $ */ +/* $Id: m_vector.c,v 1.2 2000/12/26 05:09:31 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -85,7 +85,7 @@ void gl_vector4f_init( GLvector4f *v, GLuint flags, GLfloat (*storage)[4] ) v->data = storage; v->start = (GLfloat *) storage; v->count = 0; - v->flags = size_bits[4] | flags | VEC_GOOD_STRIDE; + v->flags = size_bits[4] | flags ; } void gl_vector3f_init( GLvector3f *v, GLuint flags, GLfloat (*storage)[3] ) @@ -94,7 +94,7 @@ void gl_vector3f_init( GLvector3f *v, GLuint flags, GLfloat (*storage)[3] ) v->data = storage; v->start = (GLfloat *) storage; v->count = 0; - v->flags = flags | VEC_GOOD_STRIDE; + v->flags = flags ; } void gl_vector1f_init( GLvector1f *v, GLuint flags, GLfloat *storage ) @@ -103,7 +103,7 @@ void gl_vector1f_init( GLvector1f *v, GLuint flags, GLfloat *storage ) v->data = storage; v->start = (GLfloat *)storage; v->count = 0; - v->flags = flags | VEC_GOOD_STRIDE; + v->flags = flags ; } void gl_vector4ub_init( GLvector4ub *v, GLuint flags, GLubyte (*storage)[4] ) @@ -112,7 +112,7 @@ void gl_vector4ub_init( GLvector4ub *v, GLuint flags, GLubyte (*storage)[4] ) v->data = storage; v->start = (GLubyte *) storage; v->count = 0; - v->flags = flags | VEC_GOOD_STRIDE; + v->flags = flags ; } void gl_vector1ub_init( GLvector1ub *v, GLuint flags, GLubyte *storage ) @@ -121,7 +121,7 @@ void gl_vector1ub_init( GLvector1ub *v, GLuint flags, GLubyte *storage ) v->data = storage; v->start = (GLubyte *) storage; v->count = 0; - v->flags = flags | VEC_GOOD_STRIDE; + v->flags = flags ; } void gl_vector1ui_init( GLvector1ui *v, GLuint flags, GLuint *storage ) @@ -130,7 +130,7 @@ void gl_vector1ui_init( GLvector1ui *v, GLuint flags, GLuint *storage ) v->data = storage; v->start = (GLuint *) storage; v->count = 0; - v->flags = flags | VEC_GOOD_STRIDE; + v->flags = flags ; } @@ -153,7 +153,7 @@ void gl_vector4f_alloc( GLvector4f *v, GLuint flags, GLuint count, v->start = (GLfloat *) v->storage; v->data = (GLfloat (*)[4]) v->storage; v->count = 0; - v->flags = size_bits[4] | flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = size_bits[4] | flags | VEC_MALLOC ; } void gl_vector3f_alloc( GLvector3f *v, GLuint flags, GLuint count, @@ -164,7 +164,7 @@ void gl_vector3f_alloc( GLvector3f *v, GLuint flags, GLuint count, v->start = (GLfloat *) v->storage; v->data = (GLfloat (*)[3]) v->storage; v->count = 0; - v->flags = flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = flags | VEC_MALLOC ; } void gl_vector1f_alloc( GLvector1f *v, GLuint flags, GLuint count, @@ -175,7 +175,7 @@ void gl_vector1f_alloc( GLvector1f *v, GLuint flags, GLuint count, ALIGN_MALLOC( count * sizeof(GLfloat), alignment ); v->data = v->start; v->count = 0; - v->flags = flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = flags | VEC_MALLOC ; } void gl_vector4ub_alloc( GLvector4ub *v, GLuint flags, GLuint count, @@ -186,7 +186,7 @@ void gl_vector4ub_alloc( GLvector4ub *v, GLuint flags, GLuint count, v->start = (GLubyte *) v->storage; v->data = (GLubyte (*)[4]) v->storage; v->count = 0; - v->flags = flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = flags | VEC_MALLOC ; } void gl_vector1ub_alloc( GLvector1ub *v, GLuint flags, GLuint count, @@ -197,7 +197,7 @@ void gl_vector1ub_alloc( GLvector1ub *v, GLuint flags, GLuint count, v->start = (GLubyte *) v->storage; v->data = (GLubyte *) v->storage; v->count = 0; - v->flags = flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = flags | VEC_MALLOC ; } void gl_vector1ui_alloc( GLvector1ui *v, GLuint flags, GLuint count, @@ -208,7 +208,7 @@ void gl_vector1ui_alloc( GLvector1ui *v, GLuint flags, GLuint count, v->start = (GLuint *) v->storage; v->data = (GLuint *) v->storage; v->count = 0; - v->flags = flags | VEC_MALLOC | VEC_GOOD_STRIDE; + v->flags = flags | VEC_MALLOC ; } |