llvmpipe: call lp_fence_signal()
authorBrian Paul <brianp@vmware.com>
Thu, 25 Mar 2010 01:28:41 +0000 (19:28 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 25 Mar 2010 01:30:32 +0000 (19:30 -0600)
src/gallium/drivers/llvmpipe/lp_rast.c

index 3a51800c40db022cea66ef763b5780f638abc791..cd9919ca9095b26d9dc88041cc2838511c246318 100644 (file)
@@ -491,18 +491,7 @@ lp_rast_fence(struct lp_rasterizer_task *task,
               const union lp_rast_cmd_arg arg)
 {
    struct lp_fence *fence = arg.fence;
-
-   pipe_mutex_lock( fence->mutex );
-
-   fence->count++;
-   assert(fence->count <= fence->rank);
-
-   LP_DBG(DEBUG_RAST, "%s count=%u rank=%u\n", __FUNCTION__,
-          fence->count, fence->rank);
-
-   pipe_condvar_signal( fence->signalled );
-
-   pipe_mutex_unlock( fence->mutex );
+   lp_fence_signal(fence);
 }