static void intel_dri_server_wait_sync(__DRIcontext *ctx, void *driver_fence, unsigned flags) { struct brw_context *brw = ctx->driverPrivate; struct brw_fence *fence = driver_fence; brw_fence_server_wait(brw, fence); }
static void brw_gl_server_wait_sync(struct gl_context *ctx, struct gl_sync_object *_sync, GLbitfield flags, GLuint64 timeout) { struct brw_context *brw = brw_context(ctx); struct brw_gl_sync *sync = (struct brw_gl_sync *) _sync; brw_fence_server_wait(brw, &sync->fence); }
static void brw_dri_server_wait_sync(__DRIcontext *ctx, void *_fence, unsigned flags) { struct brw_fence *fence = _fence; /* We might be called here with a NULL fence as a result of WaitSyncKHR * on a EGL_KHR_reusable_sync fence. Nothing to do here in such case. */ if (!fence) return; brw_fence_server_wait(fence->brw, fence); }