nouveau: delay deleting buffer with unflushed fence
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Sep 2015 23:05:14 +0000 (19:05 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Sep 2015 21:28:54 +0000 (17:28 -0400)
commit3a6b9a7830c3df14ffcfbbf57c82ea08bd59ef04
tree22ecc2cef25ca36e696c64f0f4c528c600d8b58c
parentd4e650b07bc80075f0d088e7d85df9efa45e11bd
nouveau: delay deleting buffer with unflushed fence

If there is an unflushed fence on the bo, then the resource may still be
used in commands built up in the local pushbuf. Flushing can cause all
sorts of unwanted effects, so just free the bo when the relevant fence
is hit.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Tested-by: Marcin Ĺšlusarz <marcin.slusarz@gmail.com>
src/gallium/drivers/nouveau/nouveau_buffer.c
src/gallium/drivers/nouveau/nv50/nv50_miptree.c