diff options
author | Brian Paul <brianp@vmware.com> | 2022-05-27 08:45:30 -0600 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-06-15 12:30:05 +0000 |
commit | f5e2c6d86ec11bf8f5e88219f3c1b1ca37057963 (patch) | |
tree | 140b09d1f353592d28c37e45f4459a4b099cf890 | |
parent | 26eeb0a090e346d43a823d26184688f7c43b4696 (diff) |
llvmpipe: whitespace clean-ups in lp_rast.h
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937>
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index 14a2710f7f5..10c2096525d 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.h +++ b/src/gallium/drivers/llvmpipe/lp_rast.h @@ -85,7 +85,7 @@ struct lp_rast_state { * the fragment shader, such as blend color and alpha ref value. */ struct lp_jit_context jit_context; - + /* The shader itself. Probably we also need to pass a pointer to * the tile color/z/stencil data somehow */ @@ -119,6 +119,7 @@ struct lp_rast_shader_inputs { /* followed by a0, dadx, dady and planes[] */ }; + struct lp_rast_plane { /* edge function values at minx,miny ?? */ int64_t c; @@ -136,6 +137,7 @@ struct lp_rast_plane { uint32_t pad; }; + /** * Rasterization information for a triangle known to be in this bin, * plus inputs to run the shader: @@ -199,7 +201,7 @@ lp_rast_create( unsigned num_threads ); void lp_rast_destroy( struct lp_rasterizer * ); -void +void lp_rast_queue_scene( struct lp_rasterizer *rast, struct lp_scene *scene ); @@ -236,6 +238,7 @@ lp_rast_arg_inputs( const struct lp_rast_shader_inputs *shade_tile ) return arg; } + static inline union lp_rast_cmd_arg lp_rast_arg_triangle( const struct lp_rast_triangle *triangle, unsigned plane_mask) @@ -246,6 +249,7 @@ lp_rast_arg_triangle( const struct lp_rast_triangle *triangle, return arg; } + /** * Build argument for a contained triangle. * @@ -262,6 +266,7 @@ lp_rast_arg_triangle_contained( const struct lp_rast_triangle *triangle, return arg; } + static inline union lp_rast_cmd_arg lp_rast_arg_rectangle( const struct lp_rast_rectangle *rectangle ) { @@ -270,6 +275,7 @@ lp_rast_arg_rectangle( const struct lp_rast_rectangle *rectangle ) return arg; } + static inline union lp_rast_cmd_arg lp_rast_arg_state( const struct lp_rast_state *state ) { @@ -278,6 +284,7 @@ lp_rast_arg_state( const struct lp_rast_state *state ) return arg; } + static inline union lp_rast_cmd_arg lp_rast_arg_fence( struct lp_fence *fence ) { @@ -305,6 +312,7 @@ lp_rast_arg_query( struct llvmpipe_query *pq ) return arg; } + static inline union lp_rast_cmd_arg lp_rast_arg_null( void ) { @@ -383,8 +391,10 @@ lp_characterize_bin(const struct cmd_bin *bin); void lp_debug_bins( struct lp_scene *scene ); + void lp_debug_draw_bins_by_cmd_length( struct lp_scene *scene ); + void lp_debug_draw_bins_by_coverage( struct lp_scene *scene ); |