summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-04 10:41:38 -0700
committerBrian Paul <[email protected]>2009-12-04 10:41:42 -0700
commit9dca0100489c7a7c02af77da42a39dbe1560d7e2 (patch)
tree01305cc4c1257a13a9f31ccbacd9f5392f35a029 /src/gallium/drivers/llvmpipe/lp_setup.c
parent1796ffd3bcf74a94c800717e77abaf9902c50b4d (diff)
llvmpipe: struct cmd_bin
Just introducing a new structure to represent a per-tile bin.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 1f303d7705e..fc7f4f6778e 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -111,7 +111,7 @@ static void reset_context( struct setup_context *setup )
*/
for (i = 0; i < setup->tiles_x; i++) {
for (j = 0; j < setup->tiles_y; j++) {
- struct cmd_block_list *list = &setup->tile[i][j];
+ struct cmd_block_list *list = &setup->tile[i][j].commands;
struct cmd_block *block;
struct cmd_block *tmp;
@@ -173,9 +173,10 @@ static void bin_everywhere( struct setup_context *setup,
/** Rasterize commands for a single bin */
static void
rasterize_bin( struct lp_rasterizer *rast,
- struct cmd_block_list *commands,
+ const struct cmd_bin *bin,
int x, int y)
{
+ const struct cmd_block_list *commands = &bin->commands;
struct cmd_block *block;
unsigned k;
@@ -666,7 +667,7 @@ lp_setup_destroy( struct setup_context *setup )
for (i = 0; i < TILES_X; i++)
for (j = 0; j < TILES_Y; j++)
- FREE(setup->tile[i][j].head);
+ FREE(setup->tile[i][j].commands.head);
FREE(setup->data.head);
@@ -691,8 +692,8 @@ lp_setup_create( struct pipe_screen *screen )
for (i = 0; i < TILES_X; i++)
for (j = 0; j < TILES_Y; j++)
- setup->tile[i][j].head =
- setup->tile[i][j].tail = CALLOC_STRUCT(cmd_block);
+ setup->tile[i][j].commands.head =
+ setup->tile[i][j].commands.tail = CALLOC_STRUCT(cmd_block);
setup->data.head =
setup->data.tail = CALLOC_STRUCT(data_block);