summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup_context.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-30 14:02:01 -0700
committerBrian Paul <brianp@vmware.com>2009-11-30 14:02:01 -0700
commit7505510c7b7c33f3c571647c0398da7e1b823806 (patch)
tree0b5982ebee31a733c2d0243179e065a2434719b7 /src/gallium/drivers/llvmpipe/lp_setup_context.h
parent7d042ac2a285c220a396d91a6dbe5c7f4e697c71 (diff)
llvmpipe: add a bunch of comments
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h
index 938f6ce262..3209e41c01 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_context.h
+++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h
@@ -87,6 +87,7 @@ struct setup_context {
struct cmd_block_list tile[TILES_X][TILES_Y];
struct data_block_list data;
+ /* size of framebuffer, in tiles */
unsigned tiles_x;
unsigned tiles_y;
@@ -154,6 +155,11 @@ void lp_setup_choose_point( struct setup_context *setup );
void lp_setup_new_data_block( struct data_block_list *list );
void lp_setup_new_cmd_block( struct cmd_block_list *list );
+
+/**
+ * Allocate space for a command/data in the given block list.
+ * Grow the block list if needed.
+ */
static INLINE void *get_data( struct data_block_list *list,
unsigned size)
{