gallium: cleanup fence_signalled and fence_finish
authorMarek Olšák <maraeo@gmail.com>
Mon, 7 Mar 2011 21:57:54 +0000 (22:57 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 11 Mar 2011 20:39:30 +0000 (21:39 +0100)
So that they don't have the driver-specific param and return type.

27 files changed:
src/gallium/drivers/cell/ppu/cell_fence.c
src/gallium/drivers/cell/ppu/cell_fence.h
src/gallium/drivers/galahad/glhd_screen.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/identity/id_screen.c
src/gallium/drivers/llvmpipe/lp_flush.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/rbug/rbug_screen.c
src/gallium/drivers/softpipe/sp_fence.c
src/gallium/drivers/softpipe/sp_flush.c
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/trace/tr_screen.c
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/egl/common/egl_g3d_sync.c
src/gallium/state_trackers/egl/common/native_helper.c
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/state_trackers/vega/api_context.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_cb_flush.c
src/mesa/state_tracker/st_cb_syncobj.c

index 3014a8a7b84bf0b9cbbd14d0e19015d891fc9f41..181fef44f45cfc7e3a783d1f2432d6b4b3d1eb7a 100644 (file)
@@ -47,8 +47,7 @@ cell_fence_init(struct cell_fence *fence)
 
 boolean
 cell_fence_signalled(const struct cell_context *cell,
-                     const struct cell_fence *fence,
-                     unsigned flags)
+                     const struct cell_fence *fence)
 {
    uint i;
    for (i = 0; i < cell->num_spus; i++) {
@@ -60,10 +59,9 @@ cell_fence_signalled(const struct cell_context *cell,
 }
 
 
-void
+boolean
 cell_fence_finish(const struct cell_context *cell,
                   const struct cell_fence *fence,
-                  unsigned flags,
                   uint64_t timeout)
 {
    while (!cell_fence_signalled(cell, fence)) {
@@ -78,6 +76,7 @@ cell_fence_finish(const struct cell_context *cell,
       }
    }
 #endif
+   return TRUE;
 }
 
 
index 3ef6cf7bbcab79096691c508fcc7307ad303a35a..3568230b1c0f2e047838041299701e62c1e6c3b8 100644 (file)
@@ -40,7 +40,7 @@ cell_fence_signalled(const struct cell_context *cell,
                      unsigned flags);
 
 
-extern void
+extern boolean
 cell_fence_finish(const struct cell_context *cell,
                   const struct cell_fence *fence,
                   unsigned flags,
index fbe19bf324b5a86807a6aaee0bc2a53ccdf07f95..06b6b34b74ba2fbea184b3c434d3efee812ca7a8 100644 (file)
@@ -276,23 +276,20 @@ galahad_screen_fence_reference(struct pipe_screen *_screen,
                            fence);
 }
 
-static int
+static boolean
 galahad_screen_fence_signalled(struct pipe_screen *_screen,
-                                struct pipe_fence_handle *fence,
-                                unsigned flags)
+                                struct pipe_fence_handle *fence)
 {
    struct galahad_screen *glhd_screen = galahad_screen(_screen);
    struct pipe_screen *screen = glhd_screen->screen;
 
    return screen->fence_signalled(screen,
-                                  fence,
-                                  flags);
+                                  fence);
 }
 
-static int
+static boolean
 galahad_screen_fence_finish(struct pipe_screen *_screen,
                              struct pipe_fence_handle *fence,
-                             unsigned flags,
                              uint64_t timeout)
 {
    struct galahad_screen *glhd_screen = galahad_screen(_screen);
@@ -300,7 +297,6 @@ galahad_screen_fence_finish(struct pipe_screen *_screen,
 
    return screen->fence_finish(screen,
                                fence,
-                               flags,
                                timeout);
 }
 
index dd679f95200d18b57b3c7f79932a9cda5a913b14..031c9680d2ccfa4d4e0e11eae1501c00a4bce3e3 100644 (file)
@@ -318,25 +318,23 @@ i915_fence_reference(struct pipe_screen *screen,
    is->iws->fence_reference(is->iws, ptr, fence);
 }
 
-static int
+static boolean
 i915_fence_signalled(struct pipe_screen *screen,
-                     struct pipe_fence_handle *fence,
-                     unsigned flags)
+                     struct pipe_fence_handle *fence)
 {
    struct i915_screen *is = i915_screen(screen);
 
-   return is->iws->fence_signalled(is->iws, fence);
+   return is->iws->fence_signalled(is->iws, fence) == 0;
 }
 
-static int
+static boolean
 i915_fence_finish(struct pipe_screen *screen,
                   struct pipe_fence_handle *fence,
-                  unsigned flags,
                   uint64_t timeout)
 {
    struct i915_screen *is = i915_screen(screen);
 
-   return is->iws->fence_finish(is->iws, fence);
+   return is->iws->fence_finish(is->iws, fence) == 0;
 }
 
 
index 367581a6b4189c1d3a0741d68bef48532eb4aee2..b3b88c799d9b2eaa7096f9f1b09b2ec117589c4a 100644 (file)
@@ -365,21 +365,19 @@ brw_fence_reference(struct pipe_screen *screen,
 {
 }
 
-static int
+static boolean
 brw_fence_signalled(struct pipe_screen *screen,
-                     struct pipe_fence_handle *fence,
-                     unsigned flags)
+                     struct pipe_fence_handle *fence)
 {
-   return 0;                    /* XXX shouldn't this be a boolean? */
+   return TRUE;
 }
 
-static int
+static boolean
 brw_fence_finish(struct pipe_screen *screen,
                  struct pipe_fence_handle *fence,
-                 unsigned flags,
                  uint64_t timeout)
 {
-   return 0;
+   return TRUE;
 }
 
 
index b289c1e5d17b16ed56ba6ffe6defbea9d4faa757..56e8ac014cfde166e5653b7e6ad48bfecd070a12 100644 (file)
@@ -242,23 +242,20 @@ identity_screen_fence_reference(struct pipe_screen *_screen,
                            fence);
 }
 
-static int
+static boolean
 identity_screen_fence_signalled(struct pipe_screen *_screen,
-                                struct pipe_fence_handle *fence,
-                                unsigned flags)
+                                struct pipe_fence_handle *fence)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
    struct pipe_screen *screen = id_screen->screen;
 
    return screen->fence_signalled(screen,
-                                  fence,
-                                  flags);
+                                  fence);
 }
 
-static int
+static boolean
 identity_screen_fence_finish(struct pipe_screen *_screen,
                              struct pipe_fence_handle *fence,
-                             unsigned flags,
                              uint64_t timeout)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
@@ -266,7 +263,6 @@ identity_screen_fence_finish(struct pipe_screen *_screen,
 
    return screen->fence_finish(screen,
                                fence,
-                               flags,
                                timeout);
 }
 
index 343c6145e7ea6ea273411c78af4009b3a6285bd2..2a3ba904fe4621d457a28a24d0bb196cf3f2f3a3 100644 (file)
@@ -92,7 +92,7 @@ llvmpipe_finish( struct pipe_context *pipe,
    struct pipe_fence_handle *fence = NULL;
    llvmpipe_flush(pipe, 0, &fence, reason);
    if (fence) {
-      pipe->screen->fence_finish(pipe->screen, fence, 0, PIPE_TIMEOUT_INFINITE);
+      pipe->screen->fence_finish(pipe->screen, fence, PIPE_TIMEOUT_INFINITE);
       pipe->screen->fence_reference(pipe->screen, &fence, NULL);
    }
 }
index c600144a2da876ea72e5d9ffb7601382f64b97f4..446037c660a2d405f0ab5650cb287cba34e5d629 100644 (file)
@@ -349,10 +349,9 @@ llvmpipe_fence_reference(struct pipe_screen *screen,
 /**
  * Has the fence been executed/finished?
  */
-static int
+static boolean
 llvmpipe_fence_signalled(struct pipe_screen *screen,
-                         struct pipe_fence_handle *fence,
-                         unsigned flag)
+                         struct pipe_fence_handle *fence)
 {
    struct lp_fence *f = (struct lp_fence *) fence;
    return lp_fence_signalled(f);
@@ -362,16 +361,15 @@ llvmpipe_fence_signalled(struct pipe_screen *screen,
 /**
  * Wait for the fence to finish.
  */
-static int
+static boolean
 llvmpipe_fence_finish(struct pipe_screen *screen,
                       struct pipe_fence_handle *fence_handle,
-                      unsigned flag,
                       uint64_t timeout)
 {
    struct lp_fence *f = (struct lp_fence *) fence_handle;
 
    lp_fence_wait(f);
-   return 0;
+   return TRUE;
 }
 
 
index d6c2a0a199a1cfbbaaaa0f7f2c7b72b9ce080ba9..4cd82a51c1480fc82600272bcb5d3515dd731f9d 100644 (file)
@@ -154,21 +154,19 @@ nouveau_screen_fence_ref(struct pipe_screen *pscreen,
        nouveau_fence_ref(nouveau_fence(pfence), (struct nouveau_fence **)ptr);
 }
 
-static int
+static boolean
 nouveau_screen_fence_signalled(struct pipe_screen *screen,
-                              struct pipe_fence_handle *pfence,
-                              unsigned flags)
+                               struct pipe_fence_handle *pfence)
 {
-       return !nouveau_fence_signalled(nouveau_fence(pfence));
+        return nouveau_fence_signalled(nouveau_fence(pfence));
 }
 
-static int
+static boolean
 nouveau_screen_fence_finish(struct pipe_screen *screen,
                            struct pipe_fence_handle *pfence,
-                            unsigned flags,
                             uint64_t timeout)
 {
-       return !nouveau_fence_wait(nouveau_fence(pfence));
+        return nouveau_fence_wait(nouveau_fence(pfence));
 }
 
 
index a929a2e282b6cfca407a43ca8ab44a7b61d9c46b..37ca2295d0a6a4c08c4b415bdac8d3363cf63fca 100644 (file)
@@ -423,20 +423,18 @@ static void r300_fence_reference(struct pipe_screen *screen,
                              (struct r300_winsys_bo*)fence);
 }
 
-static int r300_fence_signalled(struct pipe_screen *screen,
-                                struct pipe_fence_handle *fence,
-                                unsigned flags)
+static boolean r300_fence_signalled(struct pipe_screen *screen,
+                                    struct pipe_fence_handle *fence)
 {
     struct r300_winsys_screen *rws = r300_screen(screen)->rws;
     struct r300_winsys_bo *rfence = (struct r300_winsys_bo*)fence;
 
-    return !rws->buffer_is_busy(rfence) ? 0 : 1; /* 0 == success */
+    return !rws->buffer_is_busy(rfence);
 }
 
-static int r300_fence_finish(struct pipe_screen *screen,
-                             struct pipe_fence_handle *fence,
-                             unsigned flags,
-                             uint64_t timeout)
+static boolean r300_fence_finish(struct pipe_screen *screen,
+                                 struct pipe_fence_handle *fence,
+                                 uint64_t timeout)
 {
     struct r300_winsys_screen *rws = r300_screen(screen)->rws;
     struct r300_winsys_bo *rfence = (struct r300_winsys_bo*)fence;
@@ -450,15 +448,15 @@ static int r300_fence_finish(struct pipe_screen *screen,
         /* Wait in a loop. */
         while (rws->buffer_is_busy(rfence)) {
             if (os_time_get() - start_time >= timeout) {
-                return 1;
+                return FALSE;
             }
             os_time_sleep(10);
         }
-        return 0;
+        return TRUE;
     }
 
     rws->buffer_wait(rfence);
-    return 0; /* 0 == success */
+    return TRUE;
 }
 
 struct pipe_screen* r300_screen_create(struct r300_winsys_screen *rws)
index d8d23bcb9c553e652ccc83a6a31b1bc6883304b8..4f8b1003dfc6f3c91fc05e1c2a091ee4d840372c 100644 (file)
@@ -240,23 +240,20 @@ rbug_screen_fence_reference(struct pipe_screen *_screen,
                            fence);
 }
 
-static int
+static boolean
 rbug_screen_fence_signalled(struct pipe_screen *_screen,
-                            struct pipe_fence_handle *fence,
-                            unsigned flags)
+                            struct pipe_fence_handle *fence)
 {
    struct rbug_screen *rb_screen = rbug_screen(_screen);
    struct pipe_screen *screen = rb_screen->screen;
 
    return screen->fence_signalled(screen,
-                                  fence,
-                                  flags);
+                                  fence);
 }
 
-static int
+static boolean
 rbug_screen_fence_finish(struct pipe_screen *_screen,
                          struct pipe_fence_handle *fence,
-                         unsigned flags,
                          uint64_t timeout)
 {
    struct rbug_screen *rb_screen = rbug_screen(_screen);
@@ -264,7 +261,6 @@ rbug_screen_fence_finish(struct pipe_screen *_screen,
 
    return screen->fence_finish(screen,
                                fence,
-                               flags,
                                timeout);
 }
 
index 40d0b5970ef2896aa14d498cd1ff4ec308e33a08..7b79a0df4ea3e5b98d069204d4441394e32fbf68 100644 (file)
@@ -41,24 +41,22 @@ softpipe_fence_reference(struct pipe_screen *screen,
 }
 
 
-static int
+static boolean
 softpipe_fence_signalled(struct pipe_screen *screen,
-                         struct pipe_fence_handle *fence,
-                         unsigned flags)
+                         struct pipe_fence_handle *fence)
 {
    assert(!fence);
-   return 0;
+   return TRUE;
 }
 
 
-static int
+static boolean
 softpipe_fence_finish(struct pipe_screen *screen,
                       struct pipe_fence_handle *fence,
-                      unsigned flags,
                       uint64_t timeout)
 {
    assert(!fence);
-   return 0;
+   return TRUE;
 }
 
 
index f16751a2163aaa3b892da90f0b82350649e87ce9..edbce6a297adfb643548d3b1c49383df0bbbd7b6 100644 (file)
@@ -162,7 +162,7 @@ softpipe_flush_resource(struct pipe_context *pipe,
              * This is for illustrative purposes only, as softpipe does not
              * have fences.
              */
-            pipe->screen->fence_finish(pipe->screen, fence, 0,
+            pipe->screen->fence_finish(pipe->screen, fence,
                                        PIPE_TIMEOUT_INFINITE);
             pipe->screen->fence_reference(pipe->screen, &fence, NULL);
          }
index e64dc94b9d8ff6f515de8a3ba68e43f61722af39..4782b4bf70ebc6208c3b20763dfdfcababb97cbf 100644 (file)
@@ -241,7 +241,7 @@ void svga_context_flush( struct svga_context *svga,
 
    if (SVGA_DEBUG & DEBUG_SYNC) {
       if (fence)
-         svga->pipe.screen->fence_finish( svga->pipe.screen, fence, 0,
+         svga->pipe.screen->fence_finish( svga->pipe.screen, fence,
                                           PIPE_TIMEOUT_INFINITE);
    }
 
index 0dee8b1bec1772ba4c4ab49e5766abbdae519886..159758ed8bb151c3bc81b8ca898cbe50382ba7b5 100644 (file)
@@ -412,20 +412,18 @@ svga_fence_reference(struct pipe_screen *screen,
 }
 
 
-static int
+static boolean
 svga_fence_signalled(struct pipe_screen *screen,
-                     struct pipe_fence_handle *fence,
-                     unsigned flag)
+                     struct pipe_fence_handle *fence)
 {
    struct svga_winsys_screen *sws = svga_screen(screen)->sws;
-   return sws->fence_signalled(sws, fence, flag);
+   return sws->fence_signalled(sws, fence, 0) == 0;
 }
 
 
-static int
+static boolean
 svga_fence_finish(struct pipe_screen *screen,
                   struct pipe_fence_handle *fence,
-                  unsigned flag,
                   uint64_t timeout)
 {
    struct svga_winsys_screen *sws = svga_screen(screen)->sws;
@@ -433,7 +431,7 @@ svga_fence_finish(struct pipe_screen *screen,
    SVGA_DBG(DEBUG_DMA|DEBUG_PERF, "%s fence_ptr %p\n",
             __FUNCTION__, fence);
 
-   return sws->fence_finish(sws, fence, flag);
+   return sws->fence_finish(sws, fence, 0) == 0;
 }
 
 
index 17f87cb906c0713fd7efe502da6c009cb56e6238..282a0dcef82071550611d52c6cea0415ec31fb6b 100644 (file)
@@ -393,10 +393,9 @@ trace_screen_fence_reference(struct pipe_screen *_screen,
 }
 
 
-static int
+static boolean
 trace_screen_fence_signalled(struct pipe_screen *_screen,
-                             struct pipe_fence_handle *fence,
-                             unsigned flags)
+                             struct pipe_fence_handle *fence)
 {
    struct trace_screen *tr_scr = trace_screen(_screen);
    struct pipe_screen *screen = tr_scr->screen;
@@ -406,11 +405,10 @@ trace_screen_fence_signalled(struct pipe_screen *_screen,
 
    trace_dump_arg(ptr, screen);
    trace_dump_arg(ptr, fence);
-   trace_dump_arg(uint, flags);
 
-   result = screen->fence_signalled(screen, fence, flags);
+   result = screen->fence_signalled(screen, fence);
 
-   trace_dump_ret(int, result);
+   trace_dump_ret(bool, result);
 
    trace_dump_call_end();
 
@@ -418,10 +416,9 @@ trace_screen_fence_signalled(struct pipe_screen *_screen,
 }
 
 
-static int
+static boolean
 trace_screen_fence_finish(struct pipe_screen *_screen,
                           struct pipe_fence_handle *fence,
-                          unsigned flags,
                           uint64_t timeout)
 {
    struct trace_screen *tr_scr = trace_screen(_screen);
@@ -432,12 +429,11 @@ trace_screen_fence_finish(struct pipe_screen *_screen,
 
    trace_dump_arg(ptr, screen);
    trace_dump_arg(ptr, fence);
-   trace_dump_arg(uint, flags);
    trace_dump_arg(uint, timeout);
 
-   result = screen->fence_finish(screen, fence, flags, timeout);
+   result = screen->fence_finish(screen, fence, timeout);
 
-   trace_dump_ret(int, result);
+   trace_dump_ret(bool, result);
 
    trace_dump_call_end();
 
index 8e77e77db3938ede54616fe5cae37374c693d8a1..9aab5895dfeb50a417865088f7afbc9920aed9d7 100644 (file)
@@ -183,23 +183,17 @@ struct pipe_screen {
 
    /**
     * Checks whether the fence has been signalled.
-    * \param flags  driver-specific meaning
-    * \return zero on success.
     */
-   int (*fence_signalled)( struct pipe_screen *screen,
-                           struct pipe_fence_handle *fence,
-                           unsigned flags );
+   boolean (*fence_signalled)( struct pipe_screen *screen,
+                               struct pipe_fence_handle *fence );
 
    /**
     * Wait for the fence to finish.
-    * \param flags  driver-specific meaning
     * \param timeout  in nanoseconds
-    * \return zero on success.
     */
-   int (*fence_finish)( struct pipe_screen *screen,
-                        struct pipe_fence_handle *fence,
-                        unsigned flags,
-                        uint64_t timeout );
+   boolean (*fence_finish)( struct pipe_screen *screen,
+                            struct pipe_fence_handle *fence,
+                            uint64_t timeout );
 
 };
 
index 61619886c3d679a6f03ef26fd0792aecd530d2ce..6b409573fa30fa25d3da05e8cdb28bf5c58e70f8 100644 (file)
@@ -689,7 +689,7 @@ egl_g3d_wait_client(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *ctx)
    gctx->stctxi->flush(gctx->stctxi,
          PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, &fence);
    if (fence) {
-      screen->fence_finish(screen, fence, 0, PIPE_TIMEOUT_INFINITE);
+      screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE);
       screen->fence_reference(screen, &fence, NULL);
    }
 
index 020c696238f70ae283f52a931415cc046c73d7ca..7610e04fa3e22ea29528ade11222d1fcdc13fbf8 100644 (file)
@@ -109,7 +109,7 @@ egl_g3d_wait_fence_sync(struct egl_g3d_sync *gsync, EGLTimeKHR timeout)
 
       _eglUnlockMutex(&dpy->Mutex);
       /* no timed finish? */
-      screen->fence_finish(screen, fence, 0x0, PIPE_TIMEOUT_INFINITE);
+      screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE);
       ret = EGL_CONDITION_SATISFIED_KHR;
       _eglLockMutex(&dpy->Mutex);
 
index aaccee3e1d1dde154fd24d6997322a3224af84d0..290c6d7076d93984b1f1e6881bd97170ece237f2 100644 (file)
@@ -333,7 +333,7 @@ resource_surface_throttle(struct resource_surface *rsurf)
    struct pipe_fence_handle *fence = swap_fences_pop_front(rsurf);
 
    if (fence) {
-      (void) screen->fence_finish(screen, fence, 0, PIPE_TIMEOUT_INFINITE);
+      (void) screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE);
       screen->fence_reference(screen, &fence, NULL);
       return TRUE;
    }
index 506d6ecda8ea313b1a11bc1530a427ea208dac0f..aa8dbf4a4c1ada66376be4d58188a83fe1ebcbed 100644 (file)
@@ -1227,7 +1227,7 @@ void XMesaFlush( XMesaContext c )
 
       c->st->flush(c->st, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, &fence);
       if (fence) {
-         xmdpy->screen->fence_finish(xmdpy->screen, fence, 0,
+         xmdpy->screen->fence_finish(xmdpy->screen, fence,
                                      PIPE_TIMEOUT_INFINITE);
          xmdpy->screen->fence_reference(xmdpy->screen, &fence, NULL);
       }
index 5fba56fd2114b8d74168df781061d141ce738b61..47e57f9285896cefbe0ea7e540c69e275d93de81 100644 (file)
@@ -74,7 +74,7 @@ void vegaFinish(void)
 
    pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, &fence);
    if (fence) {
-      pipe->screen->fence_finish(pipe->screen, fence, 0,
+      pipe->screen->fence_finish(pipe->screen, fence,
                                  PIPE_TIMEOUT_INFINITE);
       pipe->screen->fence_reference(pipe->screen, &fence, NULL);
    }
index 6fc3e6514cd9bbe30d853b42d5c03e184cd45af8..0523702820574e5dc4f22c22724a91e5d2d8a020 100644 (file)
@@ -362,7 +362,7 @@ dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion,
 
        if (extents->x1 == 0 && extents->y1 == 0 &&
            extents->x2 == pDraw->width && extents->y2 == pDraw->height) {
-            ms->screen->fence_finish(ms->screen, dst_priv->fence, 0,
+            ms->screen->fence_finish(ms->screen, dst_priv->fence,
                                      PIPE_TIMEOUT_INFINITE);
            ms->screen->fence_reference(ms->screen, &dst_priv->fence, NULL);
        }
index 9c890ff086641e5e75415b46885d55f157218778..5148a0c9baae8a9e7096c0e1ef301e72bbdb3b69 100644 (file)
@@ -334,7 +334,7 @@ drv_cleanup_fences(ScrnInfoPtr pScrn)
 
     for (i = 0; i < XORG_NR_FENCES; i++) {
        if (ms->fence[i]) {
-            ms->screen->fence_finish(ms->screen, ms->fence[i], 0,
+            ms->screen->fence_finish(ms->screen, ms->fence[i],
                                      PIPE_TIMEOUT_INFINITE);
            ms->screen->fence_reference(ms->screen, &ms->fence[i], NULL);
        }
@@ -556,7 +556,7 @@ void xorg_flush(ScreenPtr pScreen)
        if (ms->dirtyThrottling) {
            if (ms->fence[0])
                ms->ctx->screen->fence_finish(ms->ctx->screen,
-                                              ms->fence[0], 0,
+                                              ms->fence[0],
                                               PIPE_TIMEOUT_INFINITE);
   
            /* The amount of rendering generated by a block handler can be
index 38d67d1b0b8303af1299eeec808136d535195df1..8767ab9469576f6c013ae6f384312da849b16086 100644 (file)
@@ -1084,7 +1084,7 @@ void xorg_exa_finish(struct exa_context *exa)
 
    xorg_exa_flush(exa, PIPE_FLUSH_RENDER_CACHE, &fence);
 
-   exa->pipe->screen->fence_finish(exa->pipe->screen, fence, 0,
+   exa->pipe->screen->fence_finish(exa->pipe->screen, fence,
                                    PIPE_TIMEOUT_INFINITE);
    exa->pipe->screen->fence_reference(exa->pipe->screen, &fence, NULL);
 }
index 35ab00f6d015e42c4928d4aa2a6d3a3545e12f67..ce902231eff4a835489f030e9e5b3c2b7432fddc 100644 (file)
@@ -103,7 +103,7 @@ void st_finish( struct st_context *st )
    st_flush(st, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, &fence);
 
    if(fence) {
-      st->pipe->screen->fence_finish(st->pipe->screen, fence, 0,
+      st->pipe->screen->fence_finish(st->pipe->screen, fence,
                                      PIPE_TIMEOUT_INFINITE);
       st->pipe->screen->fence_reference(st->pipe->screen, &fence, NULL);
    }
index 85aad08cc7013ac2c137dd58d0ec1afa308b2c23..450909cf1820cbef1e769a77e7ad9afc5a10ee67 100644 (file)
@@ -80,7 +80,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, 0) == 0) {
+   if (so->fence && screen->fence_signalled(screen, so->fence)) {
       screen->fence_reference(screen, &so->fence, NULL);
       so->b.StatusFlag = GL_TRUE;
    }
@@ -97,7 +97,7 @@ static void st_client_wait_sync(struct gl_context *ctx,
     * already called when creating a fence. */
 
    if (so->fence &&
-       screen->fence_finish(screen, so->fence, 0, timeout) == 0) {
+       screen->fence_finish(screen, so->fence, timeout)) {
       screen->fence_reference(screen, &so->fence, NULL);
       so->b.StatusFlag = GL_TRUE;
    }