summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-09-07 12:45:23 +0100
committerKeith Whitwell <[email protected]>2010-09-07 14:01:50 +0100
commit040e59851ae4c26ce0509d42d2ee71e007b3b3d1 (patch)
tree16cf2f8cd6300e690ff7ebf4dc41c59a606e3a02 /src/gallium/drivers/llvmpipe/lp_setup.c
parent6419ecd02ce43a2614822e228f306d4db589f317 (diff)
llvmpipe: rearrange queries
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c11
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);
}