}
static bool MUST_CHECK
-brw_fence_insert(struct brw_context *brw, struct brw_fence *fence)
+brw_fence_insert_locked(struct brw_context *brw, struct brw_fence *fence)
{
brw_emit_mi_flush(brw);
brw_fence_init(brw, &sync->fence, BRW_FENCE_TYPE_BO_WAIT);
- if (!brw_fence_insert(brw, &sync->fence)) {
+ if (!brw_fence_insert_locked(brw, &sync->fence)) {
/* FIXME: There exists no way to report a GL error here. If an error
* occurs, continue silently and hope for the best.
*/
brw_fence_init(brw, fence, BRW_FENCE_TYPE_BO_WAIT);
- if (!brw_fence_insert(brw, fence)) {
+ if (!brw_fence_insert_locked(brw, fence)) {
brw_fence_finish(fence);
free(fence);
return NULL;