diff options
author | Ian Romanick <[email protected]> | 2015-09-14 14:51:46 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-09-23 09:56:59 -0700 |
commit | 1ab8a69a3b7e2846a602f14aa6e4dd5994be1615 (patch) | |
tree | b63900b09430a413d8d3fdfd3a5a256c5c4e7dec /src | |
parent | b8461e03f01167a8bafe7fa9f12ff0ec246533b4 (diff) |
t_dd_dmatmp: Indentation and formatting fixes after HAVE_LINES change
No piglit regressions on i915 (G33) or radeon (Radeon 7500).
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl_dd/t_dd_dmatmp.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h index 14dfa1d5659..477fe36c9e9 100644 --- a/src/mesa/tnl_dd/t_dd_dmatmp.h +++ b/src/mesa/tnl_dd/t_dd_dmatmp.h @@ -137,33 +137,33 @@ static void TAG(render_points_verts)( struct gl_context *ctx, } } -static void TAG(render_lines_verts)( struct gl_context *ctx, - GLuint start, - GLuint count, - GLuint flags ) +static void TAG(render_lines_verts)(struct gl_context *ctx, + GLuint start, + GLuint count, + GLuint flags) { - LOCAL_VARS; - int dmasz = GET_SUBSEQUENT_VB_MAX_VERTS(); - int currentsz; - GLuint j, nr; + LOCAL_VARS; + int dmasz = GET_SUBSEQUENT_VB_MAX_VERTS(); + int currentsz; + GLuint j, nr; - INIT( GL_LINES ); + INIT(GL_LINES); - /* Emit whole number of lines in total and in each buffer: - */ - count -= count & 1; - currentsz = GET_CURRENT_VB_MAX_VERTS(); - currentsz -= currentsz & 1; - dmasz -= dmasz & 1; + /* Emit whole number of lines in total and in each buffer: + */ + count -= count & 1; + currentsz = GET_CURRENT_VB_MAX_VERTS(); + currentsz -= currentsz & 1; + dmasz -= dmasz & 1; - if (currentsz < 8) - currentsz = dmasz; + if (currentsz < 8) + currentsz = dmasz; - for (j = 0; j < count; j += nr) { - nr = MIN2( currentsz, count - j ); - TAG(emit_verts)(ctx, start + j, nr, ALLOC_VERTS(nr)); - currentsz = dmasz; - } + for (j = 0; j < count; j += nr) { + nr = MIN2(currentsz, count - j); + TAG(emit_verts)(ctx, start + j, nr, ALLOC_VERTS(nr)); + currentsz = dmasz; + } } @@ -662,35 +662,35 @@ static void TAG(render_points_elts)( struct gl_context *ctx, -static void TAG(render_lines_elts)( struct gl_context *ctx, - GLuint start, - GLuint count, - GLuint flags ) +static void TAG(render_lines_elts)(struct gl_context *ctx, + GLuint start, + GLuint count, + GLuint flags) { - LOCAL_VARS; - int dmasz = GET_SUBSEQUENT_VB_MAX_ELTS(); - int currentsz; - GLuint *elts = TNL_CONTEXT(ctx)->vb.Elts; - GLuint j, nr; + LOCAL_VARS; + int dmasz = GET_SUBSEQUENT_VB_MAX_ELTS(); + int currentsz; + GLuint *elts = TNL_CONTEXT(ctx)->vb.Elts; + GLuint j, nr; - ELT_INIT( GL_LINES ); + ELT_INIT(GL_LINES); - /* Emit whole number of lines in total and in each buffer: - */ - count -= count & 1; - currentsz -= currentsz & 1; - dmasz -= dmasz & 1; + /* Emit whole number of lines in total and in each buffer: + */ + count -= count & 1; + currentsz -= currentsz & 1; + dmasz -= dmasz & 1; - currentsz = GET_CURRENT_VB_MAX_ELTS(); - if (currentsz < 8) - currentsz = dmasz; + currentsz = GET_CURRENT_VB_MAX_ELTS(); + if (currentsz < 8) + currentsz = dmasz; - for (j = 0; j < count; j += nr ) { - nr = MIN2( currentsz, count - j ); - TAG(emit_elts)(ctx, elts + start + j, nr, ALLOC_ELTS(nr)); - FLUSH(); - currentsz = dmasz; - } + for (j = 0; j < count; j += nr ) { + nr = MIN2(currentsz, count - j); + TAG(emit_elts)(ctx, elts + start + j, nr, ALLOC_ELTS(nr)); + FLUSH(); + currentsz = dmasz; + } } |