OSDN Git Service

nouveau: delay deleting buffer with unflushed fence
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Sep 2015 23:05:14 +0000 (19:05 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 13:44:40 +0000 (14:44 +0100)
commitb2c8b0e546e9245c959895c5765de791261e2cad
treeb24b428009b2d4190ba23746b251ef42fadb5a4c
parentd6ee06e9fe23e6d58701e2ef0d3e059691bf5354
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>
(cherry picked from commit 3a6b9a7830c3df14ffcfbbf57c82ea08bd59ef04)
src/gallium/drivers/nouveau/nouveau_buffer.c
src/gallium/drivers/nouveau/nv50/nv50_miptree.c