diff options
author | Keith Whitwell <[email protected]> | 2009-10-09 10:24:19 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-10-09 10:24:19 +0100 |
commit | 84ab7dcf48e87350c0622c533e51aa495f7256c2 (patch) | |
tree | a5ead1456d589ef3bc7fd974fe3e7458ad26f0c7 /src/gallium/drivers/llvmpipe/lp_rast.h | |
parent | de902d3275d1861beb0cebdf0807a17e2682c8de (diff) |
llvmpipe: calculate overall width and height, pass to rasterizer
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index 64d668f9983..26d057beb29 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.h +++ b/src/gallium/drivers/llvmpipe/lp_rast.h @@ -97,6 +97,11 @@ struct lp_rast_triangle { float dx23; float dx31; + /* XXX: these are only used inside lp_setup_tri.c, don't really + * need to bin them: + */ + float oneoverarea; + /* inputs for the shader */ struct lp_rast_shader_inputs inputs; }; @@ -105,13 +110,17 @@ struct lp_rast_triangle { struct lp_rasterizer *lp_rast_create( void ); +void lp_rast_begin( struct lp_rasterizer *, + unsigned width, + unsigned height); + void lp_rast_bind_color( struct lp_rasterizer *, struct pipe_surface *cbuf, boolean write_when_done ); -void lp_rast_bind_depth( struct lp_rasterizer *, - struct pipe_surface *zsbuf, - boolean write_when_done ); +void lp_rast_bind_zstencil( struct lp_rasterizer *, + struct pipe_surface *zsbuf, + boolean write_when_done ); /* Begining of each tile: */ |