nouveau: another "argh gallium fscks with assert" fix
authorBen Skeggs <skeggsb@gmail.com>
Fri, 7 Mar 2008 11:48:26 +0000 (22:48 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 7 Mar 2008 11:48:26 +0000 (22:48 +1100)
src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c

index 7d5eddb92ff81bc41500125437f94f92294f09d6..fd9a5c5a96d54a0a4ea6b2e400c3e015f7aecf12 100644 (file)
@@ -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;
 }