gallium: use fence_finish instead of fence_signalled in state trackers
authorMarek Olšák <marek.olsak@amd.com>
Fri, 26 Jun 2015 14:28:53 +0000 (16:28 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jul 2015 13:08:59 +0000 (15:08 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/clover/core/event.cpp
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/vdpau/presentation.c
src/gallium/state_trackers/xvmc/surface.c
src/mesa/state_tracker/st_cb_syncobj.c

index e1f9de07f83f371ee7ca5f6be2b8704830c6562d..d75b839779472eec009e6ace645e120f7106ec4b 100644 (file)
@@ -141,7 +141,7 @@ hard_event::status() const {
    else if (!_fence)
       return CL_QUEUED;
 
-   else if (!screen->fence_signalled(screen, _fence))
+   else if (!screen->fence_finish(screen, _fence, 0))
       return CL_SUBMITTED;
 
    else
index c40bc602460dcb01dc78967e5fa316b302f88e24..26164f0b118527651f672196b77ba05d890cd315 100644 (file)
@@ -726,7 +726,7 @@ bypass_rendering:
         BOOL still_draw = FALSE;
         fence = swap_fences_see_front(This);
         if (fence) {
-            still_draw = !This->screen->fence_signalled(This->screen, fence);
+            still_draw = !This->screen->fence_finish(This->screen, fence, 0);
             This->screen->fence_reference(This->screen, &fence, NULL);
         }
         if (still_draw)
index 7f8dbed7ee2270feba3eaec08a75417345bbdb08..e53303708b2d96efefbd1c65b39db8aa56f30f97 100644 (file)
@@ -369,7 +369,7 @@ vlVdpPresentationQueueQuerySurfaceStatus(VdpPresentationQueue presentation_queue
    } else {
       pipe_mutex_lock(pq->device->mutex);
       screen = pq->device->vscreen->pscreen;
-      if (screen->fence_signalled(screen, surf->fence)) {
+      if (screen->fence_finish(screen, surf->fence, 0)) {
          screen->fence_reference(screen, &surf->fence, NULL);
          *status = VDP_PRESENTATION_QUEUE_STATUS_VISIBLE;
          pipe_mutex_unlock(pq->device->mutex);
index f32e85bf48945f82b8bf6ffff7d079744763ffbf..15eae59ff6e02295907c567de8ed7d323aaf1d66 100644 (file)
@@ -489,7 +489,7 @@ Status XvMCGetSurfaceStatus(Display *dpy, XvMCSurface *surface, int *status)
    *status = 0;
 
    if (surface_priv->fence)
-      if (!pipe->screen->fence_signalled(pipe->screen, surface_priv->fence))
+      if (!pipe->screen->fence_finish(pipe->screen, surface_priv->fence, 0))
          *status |= XVMC_RENDERING;
 
    return Success;
index 6d875b851a2d36bf11ff8c17657dfca0cb70ce93..d23c93d98d8b854f664445066a3626aee6d2c684 100644 (file)
@@ -81,7 +81,7 @@ static void st_check_sync(struct gl_context *ctx, struct gl_sync_object *obj)
    struct pipe_screen *screen = st_context(ctx)->pipe->screen;
    struct st_sync_object *so = (struct st_sync_object*)obj;
 
-   if (so->fence && screen->fence_signalled(screen, so->fence)) {
+   if (so->fence && screen->fence_finish(screen, so->fence, 0)) {
       screen->fence_reference(screen, &so->fence, NULL);
       so->b.StatusFlag = GL_TRUE;
    }