From 6931a01222beab107cb65067270770e3406425e2 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Tue, 17 Aug 2010 01:01:42 +0200 Subject: [PATCH] nvfx: fire ring after transfers Might reduce the risk of running out of memory --- src/gallium/drivers/nvfx/nvfx_transfer.c | 5 +++++ 1 file changed, 5 insertions(+) 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 * -- 2.30.2