nv50,nvc0: don't base decisions on available pushbuf space
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 10 Oct 2015 08:29:39 +0000 (04:29 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 11 Oct 2015 21:57:04 +0000 (17:57 -0400)
commit9fe458335ffd35366ef0f4b741aad0cdb3503783
tree978bcbeafd13c3f84eef0bc7695c48ecb7a43bc3
parent8053c9208f30964d89dc4e262fdf2148f0664696
nv50,nvc0: don't base decisions on available pushbuf space

We still have to push everything out, might as well kick earlier and
flip pushbufs when we know we'll need it. This resolves some issues with
the new policy of making sure that we always leave a bit of room at the
end for fences.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 47d11990b (nouveau: make sure there's always room to emit a fence)
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
src/gallium/drivers/nouveau/nv50/nv50_transfer.c
src/gallium/drivers/nouveau/nvc0/nvc0_transfer.c