nouveau: make sure there's always room to emit a fence

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 7 October 2015 03:30 UTC

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.

47d1199 nouveau: make sure there's always room to emit a fence
src/gallium/drivers/nouveau/nouveau_winsys.h | 2 ++
src/gallium/drivers/nouveau/nv30/nv30_screen.c | 4 +++-
src/gallium/drivers/nouveau/nv50/nv50_screen.c | 1 +
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ++-
4 files changed, 8 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share