From 98bf8a9b6be395c189a84a405f1fc40d6e829c31 Mon Sep 17 00:00:00 2001 From: jhartmann Date: Wed, 23 Feb 2000 20:49:10 +0000 Subject: Make buffer 0 really get used --- xc/lib/GL/mesa/src/drv/mga/mgaioctl.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c b/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c index 6fdc053bf..dd093188b 100644 --- a/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c +++ b/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c @@ -101,7 +101,6 @@ static drmBufPtr mga_get_buffer_ioctl( mgaContextPtr mmesa ) dma.granted_count); if (retcode == 0 && - dma.request_list[0] && dma.request_sizes[0] && dma.granted_count) break; @@ -436,12 +435,12 @@ void mgaFlushVerticesLocked( mgaContextPtr mmesa ) mmesa->dirty |= MGA_UPLOAD_CLIPRECTS; if (nbox == 0 -/* || !(mmesa->dirty & MGA_UPLOAD_CLIPRECTS) */ + || !(mmesa->dirty & MGA_UPLOAD_CLIPRECTS) ) { vertex.idx = vertex.real_idx; vertex.discard = (nbox == 0); - - fprintf(stderr, "Firing vertex -- case a nbox %d\n", nbox); + if (MGA_DEBUG&DEBUG_VERBOSE_IOCTL) + fprintf(stderr, "Firing vertex -- case a nbox %d\n", nbox); if (nbox == 1) nbox = 0; mmesa->sarea->nbox = nbox; @@ -451,9 +450,9 @@ void mgaFlushVerticesLocked( mgaContextPtr mmesa ) age_mmesa(mmesa, mmesa->sarea->last_enqueue); } else { -/* if (MGA_DEBUG&DEBUG_VERBOSE_IOCTL) */ - fprintf(stderr, "Firing vertex -- case b, nbox %d dirty %x\n", - nbox, mmesa->sarea->dirty); + if (MGA_DEBUG&DEBUG_VERBOSE_IOCTL) + fprintf(stderr, "Firing vertex -- case b, nbox %d dirty %x\n", + nbox, mmesa->sarea->dirty); for (i = 0 ; i < nbox ; ) { -- cgit v1.2.3