nouveau: make sure there's always room to emit a fence
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 5 Oct 2015 19:19:05 +0000 (15:19 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 7 Oct 2015 08:30:05 +0000 (04:30 -0400)
commit47d11990b2ca3eb666b8ac81fee7f7eb5019eba1
treea18b23e986ce8ebce547f0c6bc1bef0184d30eae
parent64d9d4b73031d1bc23ae869e2afad86ed01edea5
nouveau: make sure there's always room to emit a fence

I started seeing a lot of situations on nv30 where fence emission
wouldn't fit into the previous buffer (causing assertions). This ensures
that whenever checking for space, we always leave a bit of extra room
for the fence emission commands. Adjusts the nv30 and nvc0 fence
emission logic to bypass the space checking as well.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nouveau_winsys.h
src/gallium/drivers/nouveau/nv30/nv30_screen.c
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c