diff options
author | Brian Paul <[email protected]> | 2009-12-09 16:02:30 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-09 16:06:04 -0700 |
commit | 3bee8c2e7c17893f91f6b62e2db090ef495dca9d (patch) | |
tree | 59f438db826c77c9e9a57728558609f0ace6f811 /src/gallium/drivers/llvmpipe/lp_rast.c | |
parent | 288ea9770a2c9323ffa9a4b9f3a818d8aa02acd9 (diff) |
llvmpipe: use the empty_bins queue now
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 0471ad7e2f0..3165128f8f6 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -569,6 +569,10 @@ lp_rasterize_bins( struct lp_rasterizer *rast, /* no threading */ lp_bin_iter_begin( bins ); rasterize_bins( rast, 0, bins, fb, write_depth ); + + /* reset bins and put into the empty queue */ + lp_reset_bins( bins ); + lp_bins_enqueue( rast->empty_bins, bins); } else { /* threaded rendering! */ @@ -589,6 +593,10 @@ lp_rasterize_bins( struct lp_rasterizer *rast, for (i = 0; i < rast->num_threads; i++) { pipe_semaphore_wait(&rast->tasks[i].work_done); } + + /* reset bins and put into the empty queue */ + lp_reset_bins( bins ); + lp_bins_enqueue( rast->empty_bins, bins); } lp_rast_end( rast ); |