util: rename list_empty() to list_is_empty()
[mesa.git] / src / gallium / drivers / vc4 / vc4_fence.c
index fac9df34d4fdc78a415189fdadb599338ec65ddd..7e2be3eeb3610cb31b2064852d48e818566782f7 100644 (file)
@@ -72,7 +72,7 @@ vc4_fence_reference(struct pipe_screen *pscreen,
         *p = f;
 }
 
-static boolean
+static bool
 vc4_fence_finish(struct pipe_screen *pscreen,
                 struct pipe_context *ctx,
                  struct pipe_fence_handle *pf,
@@ -121,7 +121,8 @@ vc4_fence_server_sync(struct pipe_context *pctx,
         struct vc4_context *vc4 = vc4_context(pctx);
         struct vc4_fence *fence = vc4_fence(pfence);
 
-        sync_accumulate("vc4", &vc4->in_fence_fd, fence->fd);
+        if (fence->fd >= 0)
+                sync_accumulate("vc4", &vc4->in_fence_fd, fence->fd);
 }
 
 static int