nouveau: be more careful about freeing temporary transfer buffers
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Sep 2015 20:34:07 +0000 (16:34 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Sep 2015 21:28:54 +0000 (17:28 -0400)
commitd4e650b07bc80075f0d088e7d85df9efa45e11bd
tree6b0d171131dfca4ea705397f66256e1069c1be49
parent4c5308bbf4fa5c6ac274f6e1ab7c8846a2866976
nouveau: be more careful about freeing temporary transfer buffers

Deleting a buffer does not flush the command stream. Make sure that we
wait for the copies to finish before deleting the temporary bo.

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_fence.c
src/gallium/drivers/nouveau/nouveau_fence.h
src/gallium/drivers/nouveau/nv30/nv30_miptree.c
src/gallium/drivers/nouveau/nv50/nv50_transfer.c
src/gallium/drivers/nouveau/nvc0/nvc0_transfer.c