From: Brian Paul Date: Thu, 22 Jun 2017 19:32:50 +0000 (-0600) Subject: svga: minor whitespace fixes in svga_pipe_vertex.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e57a2cbcf3d8d9feb1919495f9d2e6ca4419ab0;p=mesa.git svga: minor whitespace fixes in svga_pipe_vertex.c --- diff --git a/src/gallium/drivers/svga/svga_pipe_vertex.c b/src/gallium/drivers/svga/svga_pipe_vertex.c index 9f67608d528..8fbe8a15d05 100644 --- a/src/gallium/drivers/svga/svga_pipe_vertex.c +++ b/src/gallium/drivers/svga/svga_pipe_vertex.c @@ -40,9 +40,10 @@ #include "svga_screen.h" -static void svga_set_vertex_buffers(struct pipe_context *pipe, - unsigned start_slot, unsigned count, - const struct pipe_vertex_buffer *buffers) +static void +svga_set_vertex_buffers(struct pipe_context *pipe, + unsigned start_slot, unsigned count, + const struct pipe_vertex_buffer *buffers) { struct svga_context *svga = svga_context(pipe); @@ -314,10 +315,12 @@ svga_delete_vertex_elements_state(struct pipe_context *pipe, void *state) svga->hud.num_vertexelement_objects--; } -void svga_cleanup_vertex_state( struct svga_context *svga ) + +void +svga_cleanup_vertex_state(struct svga_context *svga) { unsigned i; - + for (i = 0 ; i < svga->curr.num_vertex_buffers; i++) pipe_vertex_buffer_unreference(&svga->curr.vb[i]); @@ -328,7 +331,8 @@ void svga_cleanup_vertex_state( struct svga_context *svga ) } -void svga_init_vertex_functions( struct svga_context *svga ) +void +svga_init_vertex_functions(struct svga_context *svga) { svga->pipe.set_vertex_buffers = svga_set_vertex_buffers; svga->pipe.create_vertex_elements_state = svga_create_vertex_elements_state;