[Mesa-dev] [PATCH 6/6] vbo: clean up with 'indent', whitespace fixes, etc in vbo_exec_array.c

Charmaine Lee charmainel at vmware.com
Thu Oct 20 00:18:00 UTC 2016


Series looks fine to me.
Some minor nit below.

Reviewed-by: Charmaine Lee <charmainel at vmware.com>


>From: Brian Paul <brianp at vmware.com>
>Sent: Wednesday, October 19, 2016 3:07 PM
>To: mesa-dev at lists.freedesktop.org
>Cc: Charmaine Lee
>Subject: [PATCH 6/6] vbo: clean up with 'indent', whitespace fixes, etc in vbo_exec_array.c

>---
> src/mesa/vbo/vbo_exec_array.c | 537 ++++++++++++++++++++++--------------------
> 1 file changed, 281 insertions(+), 256 deletions(-)

>diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c

>@@ -687,12 +688,13 @@ vbo_exec_DrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count
> static void
> dump_element_buffer(struct gl_context *ctx, GLenum type)
> {
>-   const GLvoid *map =
>-      ctx->Driver.MapBufferRange(ctx, 0,
>-                                ctx->Array.VAO->IndexBufferObj->Size,
>-                                GL_MAP_READ_BIT,
>-                                 ctx->Array.VAO->IndexBufferObj,
>-                                 MAP_INTERNAL);
>+   const GLvoid *map = ctx->Driver.MapBufferRange(ctx, 0,
>+                                                  ctx->Array.VAO->
>+                                                  IndexBufferObj->Size,

I prefer not to break up this line. It makes it less readable.

>+                                                  GL_MAP_READ_BIT,
>+                                                  ctx->Array.VAO->
>+                                                  IndexBufferObj,

Same here.



More information about the mesa-dev mailing list