From: Ben Skeggs Date: Fri, 7 Mar 2008 11:48:26 +0000 (+1100) Subject: nouveau: another "argh gallium fscks with assert" fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66ba021e9fa2fa932cb9be8fc2fb8272baf51fc6;p=mesa.git nouveau: another "argh gallium fscks with assert" fix --- diff --git a/src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c b/src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c index 7d5eddb92ff..fd9a5c5a96d 100644 --- a/src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c +++ b/src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c @@ -193,7 +193,8 @@ nouveau_pushbuf_flush(struct nouveau_channel *chan, unsigned min) nouveau_fence_ref(NULL, &fence); /* Allocate space for next push buffer */ - assert(!nouveau_pushbuf_space(chan, min)); + ret = nouveau_pushbuf_space(chan, min); + assert(!ret); return 0; }