diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index 1aafd6129ba..8bc3ec7c479 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -366,13 +366,14 @@ nv30_screen_fence_emit(struct pipe_context *pcontext, uint32_t *sequence, *sequence = ++screen->base.fence.sequence; - assert(PUSH_AVAIL(push) + push->rsvd_kick >= 3); + //assert(PUSH_AVAIL(push) + push->rsvd_kick >= 3); + if ((PUSH_AVAIL(push) + push->rsvd_kick) != 0) { PUSH_DATA (push, NV30_3D_FENCE_OFFSET | (2 /* size */ << 18) | (7 /* subchan */ << 13)); PUSH_DATA (push, 0); PUSH_DATA (push, *sequence); - - nouveau_pushbuf_refn(push, &ref, 1); + + nouveau_pushbuf_refn(push, &ref, 1); } } static uint32_t