From: Luca Barbieri Date: Mon, 16 Aug 2010 23:01:42 +0000 (+0200) Subject: nvfx: fire ring after transfers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6931a01222beab107cb65067270770e3406425e2;p=mesa.git nvfx: fire ring after transfers Might reduce the risk of running out of memory --- diff --git a/src/gallium/drivers/nvfx/nvfx_transfer.c b/src/gallium/drivers/nvfx/nvfx_transfer.c index ca4462ef9dc..7cb47a20f64 100644 --- a/src/gallium/drivers/nvfx/nvfx_transfer.c +++ b/src/gallium/drivers/nvfx/nvfx_transfer.c @@ -141,7 +141,12 @@ nvfx_transfer_destroy(struct pipe_context *pipe, struct pipe_transfer *ptx) FREE(ptx); } else + { + struct nouveau_channel* chan = nvfx_context(pipe)->screen->base.channel; util_staging_transfer_destroy(pipe, ptx); + + FIRE_RING(chan); + } } void *