summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhartmann <jhartmann>2000-02-23 20:49:10 +0000
committerjhartmann <jhartmann>2000-02-23 20:49:10 +0000
commit98bf8a9b6be395c189a84a405f1fc40d6e829c31 (patch)
tree50c97c60654558bdb55885efce85df02e6b8f019
parente74d2abc514dfc63628fb73d3086cea333adbc6e (diff)
Make buffer 0 really get usedmga-0-0-1-20000225-mergemga-0-0-1-branch
-rw-r--r--xc/lib/GL/mesa/src/drv/mga/mgaioctl.c13
1 files 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 ; )
{