diff options
author | Keith Whitwell <[email protected]> | 2010-09-07 12:45:23 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-09-07 14:01:50 +0100 |
commit | 040e59851ae4c26ce0509d42d2ee71e007b3b3d1 (patch) | |
tree | 16cf2f8cd6300e690ff7ebf4dc41c59a606e3a02 /src/gallium/drivers/llvmpipe/lp_setup.c | |
parent | 6419ecd02ce43a2614822e228f306d4db589f317 (diff) |
llvmpipe: rearrange queries
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 476d23fcee5..4cb6166badd 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -155,10 +155,13 @@ begin_binning( struct lp_setup_context *setup ) struct lp_scene *scene = lp_setup_get_current_scene(setup); boolean need_zsload = FALSE; - /* Always create a fence when threads are active: + assert(scene); + assert(scene->fence == NULL); + + /* Always create a fence: */ - if (setup->num_threads) - scene->fence = lp_fence_create(setup->num_threads); + scene->fence = lp_fence_create(MAX2(1, setup->num_threads)); + if (setup->fb.zsbuf && ((setup->clear.flags & PIPE_CLEAR_DEPTHSTENCIL) != PIPE_CLEAR_DEPTHSTENCIL) && @@ -193,7 +196,7 @@ begin_binning( struct lp_setup_context *setup ) if (setup->active_query) { ok = lp_scene_bin_everywhere( scene, - lp_rast_restart_query, + lp_rast_begin_query, lp_rast_arg_query(setup->active_query) ); assert(ok); } |