From f5e2c6d86ec11bf8f5e88219f3c1b1ca37057963 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 27 May 2022 08:45:30 -0600 Subject: llvmpipe: whitespace clean-ups in lp_rast.h Signed-off-by: Brian Paul Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_rast.h | 14 ++++++++++++-- 1 file 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 ); -- cgit v1.2.3