diff options
author | Brian Paul <[email protected]> | 2017-07-12 10:24:11 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-12 10:58:13 -0600 |
commit | 183d4193b8c35b73940bec8363ebfb8070b8b281 (patch) | |
tree | 261a9a17a3b1e6a1d4219d44df0b4fe5d6e19caa /src/gallium/drivers | |
parent | f62bc96dd6d6e45680e6da51b920e161c4f3959a (diff) |
svga: whitespace, formatting fixes in svga_swtnl_state.c
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_swtnl_state.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gallium/drivers/svga/svga_swtnl_state.c b/src/gallium/drivers/svga/svga_swtnl_state.c index 8b7a8e7fbf8..06a9be8b9d6 100644 --- a/src/gallium/drivers/svga/svga_swtnl_state.c +++ b/src/gallium/drivers/svga/svga_swtnl_state.c @@ -48,7 +48,8 @@ #define SVGA_TRIANGLE_ADJ_Y -0.5f -static void set_draw_viewport( struct svga_context *svga ) +static void +set_draw_viewport(struct svga_context *svga) { struct pipe_viewport_state vp = svga->curr.viewport; float adjx = 0.0f; @@ -97,39 +98,38 @@ static void set_draw_viewport( struct svga_context *svga ) } static enum pipe_error -update_swtnl_draw( struct svga_context *svga, - unsigned dirty ) +update_swtnl_draw(struct svga_context *svga, unsigned dirty) { SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_SWTNLUPDATEDRAW); - draw_flush( svga->swtnl.draw ); + draw_flush(svga->swtnl.draw); - if (dirty & SVGA_NEW_VS) + if (dirty & SVGA_NEW_VS) draw_bind_vertex_shader(svga->swtnl.draw, svga->curr.vs->draw_shader); - if (dirty & SVGA_NEW_FS) + if (dirty & SVGA_NEW_FS) draw_bind_fragment_shader(svga->swtnl.draw, svga->curr.fs->draw_shader); if (dirty & SVGA_NEW_VBUFFER) draw_set_vertex_buffers(svga->swtnl.draw, 0, - svga->curr.num_vertex_buffers, + svga->curr.num_vertex_buffers, svga->curr.vb); if (dirty & SVGA_NEW_VELEMENT) - draw_set_vertex_elements(svga->swtnl.draw, - svga->curr.velems->count, - svga->curr.velems->velem ); + draw_set_vertex_elements(svga->swtnl.draw, + svga->curr.velems->count, + svga->curr.velems->velem); if (dirty & SVGA_NEW_CLIP) - draw_set_clip_state(svga->swtnl.draw, + draw_set_clip_state(svga->swtnl.draw, &svga->curr.clip); if (dirty & (SVGA_NEW_VIEWPORT | - SVGA_NEW_REDUCED_PRIMITIVE | + SVGA_NEW_REDUCED_PRIMITIVE | SVGA_NEW_RAST)) - set_draw_viewport( svga ); + set_draw_viewport(svga); if (dirty & SVGA_NEW_RAST) draw_set_rasterizer_state(svga->swtnl.draw, @@ -142,7 +142,7 @@ update_swtnl_draw( struct svga_context *svga, * format for no bound depth (PIPE_FORMAT_NONE). */ if (dirty & SVGA_NEW_FRAME_BUFFER) - draw_set_zs_format(svga->swtnl.draw, + draw_set_zs_format(svga->swtnl.draw, (svga->curr.framebuffer.zsbuf) ? svga->curr.framebuffer.zsbuf->format : PIPE_FORMAT_NONE); @@ -211,7 +211,8 @@ svga_vdecl_to_input_element(struct svga_context *svga, ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, num_decls, id, elements); if (ret != PIPE_OK) { svga_context_flush(svga, NULL); - ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, num_decls, id, elements); + ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, num_decls, + id, elements); assert(ret == PIPE_OK); } @@ -220,7 +221,7 @@ svga_vdecl_to_input_element(struct svga_context *svga, enum pipe_error -svga_swtnl_update_vdecl( struct svga_context *svga ) +svga_swtnl_update_vdecl(struct svga_context *svga) { struct svga_vbuf_render *svga_render = svga_vbuf_render(svga->swtnl.backend); struct draw_context *draw = svga->swtnl.draw; @@ -364,10 +365,9 @@ done: static enum pipe_error -update_swtnl_vdecl( struct svga_context *svga, - unsigned dirty ) +update_swtnl_vdecl(struct svga_context *svga, unsigned dirty) { - return svga_swtnl_update_vdecl( svga ); + return svga_swtnl_update_vdecl(svga); } |