diff options
author | Brian Paul <[email protected]> | 2009-12-03 14:57:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-03 14:57:44 -0700 |
commit | ffd0759973165368ac8ce07d9bcffeb0acf88e6f (patch) | |
tree | b3bd8641bc72a1a8eff7b97daaf7ce5cf203049b /src/gallium | |
parent | 29207a2ae6d3e6bae05621cb924c4a1940ce57fc (diff) |
llvmpipe: comments and a stub for lp_rast_set_state()
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index c8359f45a2e..2d319777eef 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -161,6 +161,7 @@ void lp_rast_start_tile( struct lp_rasterizer *rast, /** * Clear the rasterizer's current color tile. + * This is a bin command called during bin processing. */ void lp_rast_clear_color( struct lp_rasterizer *rast, const union lp_rast_cmd_arg arg ) @@ -190,6 +191,7 @@ void lp_rast_clear_color( struct lp_rasterizer *rast, /** * Clear the rasterizer's current z/stencil tile. + * This is a bin command called during bin processing. */ void lp_rast_clear_zstencil( struct lp_rasterizer *rast, const union lp_rast_cmd_arg arg) @@ -204,6 +206,10 @@ void lp_rast_clear_zstencil( struct lp_rasterizer *rast, } +/** + * Load tile color from the framebuffer surface. + * This is a bin command called during bin processing. + */ void lp_rast_load_color( struct lp_rasterizer *rast, const union lp_rast_cmd_arg arg) { @@ -212,6 +218,11 @@ void lp_rast_load_color( struct lp_rasterizer *rast, /* call u_tile func to load colors from surface */ } + +/** + * Load tile z/stencil from the framebuffer surface. + * This is a bin command called during bin processing. + */ void lp_rast_load_zstencil( struct lp_rasterizer *rast, const union lp_rast_cmd_arg arg ) { @@ -220,9 +231,25 @@ void lp_rast_load_zstencil( struct lp_rasterizer *rast, /* call u_tile func to load depth (and stencil?) from surface */ } + +void lp_rast_set_state( struct lp_rasterizer *rast, + const union lp_rast_cmd_arg arg ) +{ + RAST_DEBUG("%s\n", __FUNCTION__); + + /* XXX to do */ +} + + + /* Within a tile: */ +/** + * Run the shader on all blocks in a tile. This is used when a tile is + * completely contained inside a triangle. + * This is a bin command called during bin processing. + */ void lp_rast_shade_tile( struct lp_rasterizer *rast, const union lp_rast_cmd_arg arg ) { @@ -242,6 +269,7 @@ void lp_rast_shade_tile( struct lp_rasterizer *rast, /** * Compute shading for a 4x4 block of pixels. + * This is a bin command called during bin processing. */ void lp_rast_shade_quads( struct lp_rasterizer *rast, const struct lp_rast_shader_inputs *inputs, |