- if (setup->state == SETUP_FLUSHED) {
- /* We're in a flushed state so there's nothing in the bins.
- * No need to wait on a fence.
- */
- fence = NULL;
- }
- else {
- /* There's material in the bins. Emit the fence into the bins.
- * When the rasterizer(s) find the fence, they'll signal on it.
- */
- fence = lp_fence_create(rank);
-
- set_scene_state( setup, SETUP_ACTIVE );
-
- /* insert the fence into all command bins */
- lp_scene_bin_everywhere( scene,
- lp_rast_fence,
- lp_rast_arg_fence(fence) );