On Mon, Jun 6, 2016 at 10:31 PM,  <mathias.froehl...@gmx.net> wrote:
> From: Mathias Fröhlich <mathias.froehl...@web.de>
>
> The use of a bitmask makes functions iterating only active
> attributes less visible in profiles.
>
> v2: Use _mesa_bit_scan{,64} instead of open coding.
>
> Reviewed-by: Brian Paul <bri...@vmware.com>
> Signed-off-by: Mathias Fröhlich <mathias.froehl...@web.de>
> ---
>  src/mesa/vbo/vbo_save.h      |  2 ++
>  src/mesa/vbo/vbo_save_api.c  | 66 
> +++++++++++++++++++++++++-------------------
>  src/mesa/vbo/vbo_save_draw.c | 54 +++++++++++++++++++-----------------
>  3 files changed, 67 insertions(+), 55 deletions(-)
>
> diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h
> index 8032db8..e3b86bc 100644
> --- a/src/mesa/vbo/vbo_save.h
> +++ b/src/mesa/vbo/vbo_save.h
> @@ -61,6 +61,7 @@ struct vbo_save_copied_vtx {
>   * compiled using the fallback opcode mechanism provided by dlist.c.
>   */
>  struct vbo_save_vertex_list {
> +   GLbitfield64 enabled;/**< mask of enabled vbo arrays. */

Space before the comment.

>     GLubyte attrsz[VBO_ATTRIB_MAX];
>     GLenum attrtype[VBO_ATTRIB_MAX];
>     GLuint vertex_size;  /**< size in GLfloats */
> @@ -126,6 +127,7 @@ struct vbo_save_context {
>     struct gl_client_array arrays[VBO_ATTRIB_MAX];
>     const struct gl_client_array *inputs[VBO_ATTRIB_MAX];
>
> +   GLbitfield64 enabled;/**< mask of enabled vbo arrays. */

Space before the comment.

Given that this is the first patch I looked at and this occurred
twice, please give the rest of the patches a review for this.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to