diff --git a/src/gallium/drivers/nouveau/nouveau_fence.c b/src/gallium/drivers/nouveau/nouveau_fence.c index 450174f4083..11e8e5c7e86 100644 --- a/src/gallium/drivers/nouveau/nouveau_fence.c +++ b/src/gallium/drivers/nouveau/nouveau_fence.c @@ -229,7 +229,7 @@ nouveau_fence_kick(struct nouveau_fence *fence) } if (fence->state < NOUVEAU_FENCE_STATE_FLUSHED) { - if (nouveau_pushbuf_kick(context->pushbuf, context->pushbuf->channel)) + if (nouveau_pushbuf_kick(context->pushbuf)) return false; } diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h index 434127155f2..ccd90c03b4b 100644 --- a/src/gallium/drivers/nouveau/nouveau_winsys.h +++ b/src/gallium/drivers/nouveau/nouveau_winsys.h @@ -94,7 +94,7 @@ PUSH_KICK(struct nouveau_pushbuf *push) { struct nouveau_pushbuf_priv *ppush = push->user_priv; simple_mtx_lock(&ppush->screen->fence.lock); - nouveau_pushbuf_kick(push, push->channel); + nouveau_pushbuf_kick(push); simple_mtx_unlock(&ppush->screen->fence.lock); } diff --git a/src/gallium/winsys/nouveau/drm/nouveau.c b/src/gallium/winsys/nouveau/drm/nouveau.c index 58b55c36a78..b007c5e5312 100644 --- a/src/gallium/winsys/nouveau/drm/nouveau.c +++ b/src/gallium/winsys/nouveau/drm/nouveau.c @@ -901,7 +901,7 @@ nouveau_bo_wait(struct nouveau_bo *bo, uint32_t access, struct nouveau_client *c push = cli_push_get(client, bo); if (push) - nouveau_pushbuf_kick(push, push->channel); + nouveau_pushbuf_kick(push); if (!nvbo->head.next && !(nvbo->access & NOUVEAU_BO_WR) && !(access & NOUVEAU_BO_WR)) return 0; @@ -1650,7 +1650,7 @@ nouveau_pushbuf_data(struct nouveau_pushbuf *push, struct nouveau_bo *bo, uint64 } int -nouveau_pushbuf_kick(struct nouveau_pushbuf *push, struct nouveau_object *chan) +nouveau_pushbuf_kick(struct nouveau_pushbuf *push) { pushbuf_flush(push); return pushbuf_validate(push, false); diff --git a/src/gallium/winsys/nouveau/drm/nouveau.h b/src/gallium/winsys/nouveau/drm/nouveau.h index cd801107211..0226a4ecc1f 100644 --- a/src/gallium/winsys/nouveau/drm/nouveau.h +++ b/src/gallium/winsys/nouveau/drm/nouveau.h @@ -193,7 +193,7 @@ struct nouveau_bufctx * nouveau_pushbuf_bufctx(struct nouveau_pushbuf *, struct nouveau_bufctx *); void nouveau_pushbuf_data(struct nouveau_pushbuf *, struct nouveau_bo *, uint64_t offset, uint64_t length); -int nouveau_pushbuf_kick(struct nouveau_pushbuf *, struct nouveau_object *chan); +int nouveau_pushbuf_kick(struct nouveau_pushbuf *); int nouveau_pushbuf_refn(struct nouveau_pushbuf *, struct nouveau_pushbuf_refn *, int nr); void nouveau_pushbuf_reloc(struct nouveau_pushbuf *, struct nouveau_bo *, uint32_t data, uint32_t flags, uint32_t vor, uint32_t tor);