Mesa (master): mesa: GLvector4f:: flags is a GLbitfield, update comments too.

Brian Paul brianp at kemper.freedesktop.org
Thu May 7 16:17:01 UTC 2009


Module: Mesa
Branch: master
Commit: 800b14cd378ed708a29230d92031ac7b6ad6a286
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=800b14cd378ed708a29230d92031ac7b6ad6a286

Author: Brian Paul <brianp at vmware.com>
Date:   Wed May  6 15:12:01 2009 -0600

mesa: GLvector4f:: flags is a GLbitfield, update comments too.

---

 src/mesa/math/m_vector.c |    4 ++--
 src/mesa/math/m_vector.h |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/math/m_vector.c b/src/mesa/math/m_vector.c
index 0636421..4cbab11 100644
--- a/src/mesa/math/m_vector.c
+++ b/src/mesa/math/m_vector.c
@@ -77,7 +77,7 @@ static const GLubyte size_bits[5] = {
  * \param storage  pointer to storage for the vector's data
  */
 void
-_mesa_vector4f_init( GLvector4f *v, GLuint flags, GLfloat (*storage)[4] )
+_mesa_vector4f_init( GLvector4f *v, GLbitfield flags, GLfloat (*storage)[4] )
 {
    v->stride = 4 * sizeof(GLfloat);
    v->size = 2;   /* may change: 2-4 for vertices and 1-4 for texcoords */
@@ -96,7 +96,7 @@ _mesa_vector4f_init( GLvector4f *v, GLuint flags, GLfloat (*storage)[4] )
  * \param alignment  desired memory alignment for the data (in bytes)
  */
 void
-_mesa_vector4f_alloc( GLvector4f *v, GLuint flags, GLuint count,
+_mesa_vector4f_alloc( GLvector4f *v, GLbitfield flags, GLuint count,
                       GLuint alignment )
 {
    v->stride = 4 * sizeof(GLfloat);
diff --git a/src/mesa/math/m_vector.h b/src/mesa/math/m_vector.h
index fcf618a..71281d5 100644
--- a/src/mesa/math/m_vector.h
+++ b/src/mesa/math/m_vector.h
@@ -65,15 +65,15 @@ typedef struct {
    GLuint count;	/**< size of the vector (in elements) */
    GLuint stride;	/**< stride from one element to the next (in bytes) */
    GLuint size;		/**< 2-4 for vertices and 1-4 for texcoords */
-   GLuint flags;	/**< which columns are dirty */
+   GLbitfield flags;	/**< bitmask of VEC_x flags */
    void *storage;	/**< self-allocated storage */
    GLuint storage_count; /**< storage size in elements */
 } GLvector4f;
 
 
-extern void _mesa_vector4f_init( GLvector4f *v, GLuint flags,
+extern void _mesa_vector4f_init( GLvector4f *v, GLbitfield flags,
 			      GLfloat (*storage)[4] );
-extern void _mesa_vector4f_alloc( GLvector4f *v, GLuint flags,
+extern void _mesa_vector4f_alloc( GLvector4f *v, GLbitfield flags,
 			       GLuint count, GLuint alignment );
 extern void _mesa_vector4f_free( GLvector4f *v );
 extern void _mesa_vector4f_print( const GLvector4f *v, const GLubyte *, GLboolean );




More information about the mesa-commit mailing list