]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/blobdiff - nouveau/nouveau_pushbuf.c
nouveau: assert argument cannot have side effects
[glsdk/libdrm.git] / nouveau / nouveau_pushbuf.c
index 90836bcdd0153291cb831688c7eca8f85e60f68d..59f60d9f0e9390439da7627c3f581bd470876832 100644 (file)
@@ -270,7 +270,8 @@ nouveau_pushbuf_flush(struct nouveau_channel *chan, unsigned min)
        nvpb->nr_push = 0;
 
        /* Allocate space for next push buffer */
-       assert(!nouveau_pushbuf_space(chan, min));
+       if (nouveau_pushbuf_space(chan, min))
+               assert(0);
 
        if (chan->flush_notify)
                chan->flush_notify(chan);