Am Dienstag, den 30.01.2018, 08:26 -0700 schrieb Brian Paul: > On 01/30/2018 01:38 AM, Gert Wollny wrote: > > Am Montag, den 29.01.2018, 13:42 -0700 schrieb Brian Paul: > > > Slightly better readbility. > > > --- > > > src/mesa/main/arrayobj.c | 2 +- > > > src/mesa/main/varray.c | 12 ++++++------ > > > src/mesa/main/varray.h | 4 ++-- > > > 3 files changed, 9 insertions(+), 9 deletions(-) > > > > > > diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c > > > index ea9b316..1951638 100644 > > > --- a/src/mesa/main/arrayobj.c > > > +++ b/src/mesa/main/arrayobj.c > > > @@ -231,7 +231,7 @@ _mesa_reference_vao_(struct gl_context *ctx, > > > static void > > > init_array(struct gl_context *ctx, > > > struct gl_vertex_array_object *vao, > > > - GLuint index, GLint size, GLint type) > > > + gl_vert_attrib index, GLint size, GLint type) > > > { > > > struct gl_array_attributes *array = &vao- > > > >VertexAttrib[index]; > > > struct gl_vertex_buffer_binding *binding = &vao- > > > > BufferBinding[index]; > > > > This conflicts with d5f42f96e16f4b12, you added an asset there. > > Yeah, I rebased/reordered my patches several times (same story with > patch 4/8). This change is still applicable. Can I assume your R-b > for the rest of the patch? Yes, I took a second look now.
> > > > > With that patches 1-3 and 5-7 are > > Reviewed-by: Gert Wollny <gw.foss...@gmail.com> > > Thanks. > > -Brian > > > > > > > > > diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c > > > index 6c022b4..b2783e2 100644 > > > --- a/src/mesa/main/varray.c > > > +++ b/src/mesa/main/varray.c > > > @@ -132,7 +132,7 @@ type_to_bit(const struct gl_context *ctx, > > > GLenum > > > type) > > > static void > > > vertex_attrib_binding(struct gl_context *ctx, > > > struct gl_vertex_array_object *vao, > > > - GLuint attribIndex, > > > + gl_vert_attrib attribIndex, > > > GLuint bindingIndex) > > > { > > > struct gl_array_attributes *array = &vao- > > > > VertexAttrib[attribIndex]; > > > > > > @@ -294,7 +294,7 @@ get_array_format(const struct gl_context > > > *ctx, > > > GLint sizeMax, GLint *size) > > > void > > > _mesa_update_array_format(struct gl_context *ctx, > > > struct gl_vertex_array_object *vao, > > > - GLuint attrib, GLint size, GLenum > > > type, > > > + gl_vert_attrib attrib, GLint size, > > > GLenum > > > type, > > > GLenum format, GLboolean normalized, > > > GLboolean integer, GLboolean doubles, > > > GLuint relativeOffset) > > > @@ -1063,7 +1063,7 @@ _mesa_VertexAttribLPointer(GLuint index, > > > GLint > > > size, GLenum type, > > > void > > > _mesa_enable_vertex_array_attrib(struct gl_context *ctx, > > > struct gl_vertex_array_object > > > *vao, > > > - unsigned attrib) > > > + gl_vert_attrib attrib) > > > { > > > assert(attrib >= VERT_ATTRIB_GENERIC0); > > > assert(attrib < ARRAY_SIZE(vao->VertexAttrib)); > > > @@ -1965,7 +1965,7 @@ _mesa_VertexAttribDivisor_no_error(GLuint > > > index, GLuint divisor) > > > { > > > GET_CURRENT_CONTEXT(ctx); > > > > > > - const GLuint genericIndex = VERT_ATTRIB_GENERIC(index); > > > + const gl_vert_attrib genericIndex = > > > VERT_ATTRIB_GENERIC(index); > > > struct gl_vertex_array_object * const vao = ctx->Array.VAO; > > > > > > assert(genericIndex < ARRAY_SIZE(vao->VertexAttrib)); > > > @@ -1996,7 +1996,7 @@ _mesa_VertexAttribDivisor(GLuint index, > > > GLuint > > > divisor) > > > { > > > GET_CURRENT_CONTEXT(ctx); > > > > > > - const GLuint genericIndex = VERT_ATTRIB_GENERIC(index); > > > + const gl_vert_attrib genericIndex = > > > VERT_ATTRIB_GENERIC(index); > > > struct gl_vertex_array_object * const vao = ctx->Array.VAO; > > > > > > if (!ctx->Extensions.ARB_instanced_arrays) { > > > @@ -2856,7 +2856,7 @@ _mesa_print_arrays(struct gl_context *ctx) > > > > > > fprintf(stderr, "Array Object %u\n", vao->Name); > > > > > > - unsigned i; > > > + gl_vert_attrib i; > > > for (i = 0; i < VERT_ATTRIB_MAX; ++i) { > > > const struct gl_array_attributes *array = &vao- > > > > VertexAttrib[i]; > > > > > > if (!array->Enabled) > > > diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h > > > index 79ecd9a..fe7eb81 100644 > > > --- a/src/mesa/main/varray.h > > > +++ b/src/mesa/main/varray.h > > > @@ -96,7 +96,7 @@ _mesa_set_drawing_arrays(struct gl_context > > > *ctx, > > > extern void > > > _mesa_update_array_format(struct gl_context *ctx, > > > struct gl_vertex_array_object *vao, > > > - GLuint attrib, GLint size, GLenum > > > type, > > > + gl_vert_attrib attrib, GLint size, > > > GLenum > > > type, > > > GLenum format, GLboolean normalized, > > > GLboolean integer, GLboolean doubles, > > > GLuint relativeOffset); > > > @@ -104,7 +104,7 @@ _mesa_update_array_format(struct gl_context > > > *ctx, > > > extern void > > > _mesa_enable_vertex_array_attrib(struct gl_context *ctx, > > > struct gl_vertex_array_object > > > *vao, > > > - unsigned attrib); > > > + gl_vert_attrib attrib); > > > > > > extern void > > > _mesa_bind_vertex_buffer(struct gl_context *ctx, > > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev