nouveau: avoid double-emitting fence
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 12 Oct 2015 21:15:32 +0000 (17:15 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 12 Oct 2015 21:21:29 +0000 (17:21 -0400)
commitbf97f8d467ad1d485c2327da3f4fe1f9e1dc7379
tree1f1582221e6a00560146cccf8c10cba2a7b07dc1
parenteeb444bc995c25224ce661c49dd5df6266e370d1
nouveau: avoid double-emitting fence

The act of ensuring that there is space can cause a flush to happen,
which will emit the current screen fence. If that is the fence we're
trying to wait on, then it will have been emitted as a result of doing
the PUSH_SPACE. Don't attempt to emit it a second time.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Fixes: 8053c9208f (nouveau: avoid emitting new fences unnecessarily)
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nouveau_fence.c