nouveau: fix a thinko in copyless pushbuf ioctl

No idea why G80 doesn't hit this, but, this fixes at least one NV40 card.
main
Ben Skeggs 2009-08-19 15:55:05 +10:00
parent 8c43b79b21
commit cbb3ae3dab
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ nouveau_pushbuf_flush(struct nouveau_channel *chan, unsigned min)
*(nvpb->base.cur++) = nvpb->cal_suffix0;
*(nvpb->base.cur++) = nvpb->cal_suffix1;
if (nvpb->base.remaining > 2) /* space() will fixup if not */
nvpb->base.remaining -= 2;
req.channel = chan->id;
req.handle = nvpb->buffer[nvpb->current]->handle;