nouveau: avoid leaking fences while waiting
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 29 Nov 2013 23:49:44 +0000 (18:49 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 4 Dec 2013 15:38:50 +0000 (16:38 +0100)
commitce6dd69697ae62d9336bbd4f5808bc4d75cdcc04
treefb487fc434de9c7913237e33d458cc24a41fc2cb
parentf50a45452a4fd4f7cece8fe37c394edac0808136
nouveau: avoid leaking fences while waiting

This fixes a memory leak in some situations. Also avoids emitting an
extra fence if the kick handler does the call to nouveau_fence_next
itself.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "9.2 10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nouveau_fence.c