nvfx: fire ring after transfers
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 16 Aug 2010 23:01:42 +0000 (01:01 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:42:14 +0000 (20:42 +0200)
Might reduce the risk of running out of memory

src/gallium/drivers/nvfx/nvfx_transfer.c

index ca4462ef9dcf296b273a024b30f89974891202fd..7cb47a20f645818ecb046b24a258051b3e312c4f 100644 (file)
@@ -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 *