diff options
author | Brian Paul <[email protected]> | 2012-10-16 17:54:37 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-16 18:11:58 -0600 |
commit | 1284543a447fe5ad416ceb6de4b92a08b7b16cb7 (patch) | |
tree | b367ba72b8d34551bc5348f86825bcb816f8b157 /src/gallium/drivers/svga/svga_pipe_draw.c | |
parent | 0087f5ce51a74b0c5a467f7f9a3967fff65967b0 (diff) |
svga: whitespace fixes, remove useless comments
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_draw.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_draw.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_draw.c b/src/gallium/drivers/svga/svga_pipe_draw.c index 280c431d609..e72032e685d 100644 --- a/src/gallium/drivers/svga/svga_pipe_draw.c +++ b/src/gallium/drivers/svga/svga_pipe_draw.c @@ -23,15 +23,16 @@ * **********************************************************/ -#include "svga_cmd.h" #include "util/u_format.h" #include "util/u_inlines.h" #include "util/u_prim.h" #include "util/u_time.h" +#include "util/u_upload_mgr.h" #include "indices/u_indices.h" #include "svga_hw_reg.h" +#include "svga_cmd.h" #include "svga_context.h" #include "svga_screen.h" #include "svga_draw.h" @@ -39,7 +40,7 @@ #include "svga_swtnl.h" #include "svga_debug.h" #include "svga_resource_buffer.h" -#include "util/u_upload_mgr.h" + /** * Determine the ranges to upload for the user-buffers referenced @@ -51,7 +52,6 @@ * may be uploaded to different hardware buffers chosen by the utility * upload manager. */ - static void svga_user_buffer_range(struct svga_context *svga, unsigned start, @@ -106,13 +106,13 @@ svga_user_buffer_range(struct svga_context *svga, } } + /** * svga_upload_user_buffers - upload parts of user buffers * * This function streams a part of a user buffer to hw and fills * svga_buffer::uploaded with information on the upload. */ - static int svga_upload_user_buffers(struct svga_context *svga, unsigned start, @@ -168,6 +168,7 @@ svga_upload_user_buffers(struct svga_context *svga, return PIPE_OK; } + /** * svga_release_user_upl_buffers - release uploaded parts of user buffers * @@ -179,7 +180,6 @@ svga_upload_user_buffers(struct svga_context *svga, * svga_buffer::source_offset is set to 0, and svga_buffer::uploaded::buffer * is set to 0. */ - static void svga_release_user_upl_buffers(struct svga_context *svga) { @@ -222,8 +222,8 @@ retry_draw_range_elements( struct svga_context *svga, int index_bias, unsigned min_index, unsigned max_index, - unsigned prim, - unsigned start, + unsigned prim, + unsigned start, unsigned count, unsigned instance_count, boolean do_retry ) @@ -273,8 +273,8 @@ retry: static enum pipe_error retry_draw_arrays( struct svga_context *svga, - unsigned prim, - unsigned start, + unsigned prim, + unsigned start, unsigned count, unsigned instance_count, boolean do_retry ) @@ -305,7 +305,7 @@ retry_draw_arrays( struct svga_context *svga, return PIPE_OK; retry: - if (ret == PIPE_ERROR_OUT_OF_MEMORY && do_retry) + if (ret == PIPE_ERROR_OUT_OF_MEMORY && do_retry) { svga_context_flush( svga, NULL ); @@ -346,7 +346,7 @@ svga_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) svga->curr.reduced_prim = reduced_prim; svga->dirty |= SVGA_NEW_REDUCED_PRIMITIVE; } - + needed_swtnl = svga->state.sw.need_swtnl; svga_update_state_retry( svga, SVGA_STATE_NEED_SWTNL ); |