OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 13:52:55 +0000 (14:52 +0100)
commit30570b262971c881366deab58caf8d8d48d7d79d
tree7147c8edd2af90b551dc521bbc4691af5075251b
parentf114967ca9725152288bb648cedceb860d7d06c0
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>
(cherry picked from commit 47d11990b2ca3eb666b8ac81fee7f7eb5019eba1)
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