aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-03 16:23:52 -0700
committerBrian Paul <[email protected]>2009-12-03 16:23:52 -0700
commita9be9cd8be0fac4be5d65430749666d2204b79a4 (patch)
treef32e3b02a1fb17ec8f2255ff1b8b153fe2e02fc8 /src/gallium
parente2f46344560f8f1193b311ad41883011e67eea00 (diff)
llvmpipe: comments, clean-ups in lp_rast_priv.h
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_priv.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_priv.h b/src/gallium/drivers/llvmpipe/lp_rast_priv.h
index 723bb5ad695..4c0dfe2282d 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_priv.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast_priv.h
@@ -33,8 +33,10 @@
struct pipe_transfer;
struct pipe_screen;
-/* We can choose whatever layout for the internal tile storage we
- * prefer:
+
+/**
+ * A tile's color and depth memory.
+ * We can choose whatever layout for the internal tile storage we prefer.
*/
struct lp_rast_tile
{
@@ -44,21 +46,22 @@ struct lp_rast_tile
};
-struct lp_rasterizer {
+/**
+ * This is the state required while rasterizing a tile.
+ * The tile size is TILE_SIZE x TILE_SIZE pixels.
+ */
+struct lp_rasterizer
+{
+ struct lp_rast_tile tile; /** Tile color/z/stencil memory */
- /* We can choose whatever layout for the internal tile storage we
- * prefer:
- */
- struct lp_rast_tile tile;
+ unsigned x, y; /**< Pos of this tile in framebuffer, in pixels */
+ unsigned width, height; /**< Size of framebuffer, in pixels */
- unsigned x;
- unsigned y;
boolean clipped_tile;
-
boolean check_for_clipped_tiles;
- unsigned width;
- unsigned height;
+ /* Framebuffer stuff
+ */
struct pipe_screen *screen;
struct pipe_transfer *cbuf_transfer;
struct pipe_transfer *zsbuf_transfer;
@@ -75,6 +78,8 @@ struct lp_rasterizer {
char clear_stencil;
} state;
+ /* Pixel blocks produced during rasterization
+ */
unsigned nr_blocks;
struct {
unsigned x;