summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nouveau/nouveau_pushbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nouveau/nouveau_pushbuf.c b/nouveau/nouveau_pushbuf.c
index 90836bcd..59f60d9f 100644
--- a/nouveau/nouveau_pushbuf.c
+++ b/nouveau/nouveau_pushbuf.c
@@ -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);