From 0bcac04100f01bb79edacb29384fb535c37413f1 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 4 Feb 2009 13:40:48 +1000 Subject: [PATCH] r300: fix swtcl --- src/mesa/drivers/dri/radeon/common_misc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/common_misc.c b/src/mesa/drivers/dri/radeon/common_misc.c index 62650e2..c87c6f1 100644 --- a/src/mesa/drivers/dri/radeon/common_misc.c +++ b/src/mesa/drivers/dri/radeon/common_misc.c @@ -2535,13 +2535,11 @@ void rcommon_flush_last_swtcl_prim( GLcontext *ctx ) rmesa->swtcl.numverts * rmesa->swtcl.vertex_size * 4 == dma->current_vertexptr); - radeon_bo_unmap(dma->current); if (dma->current_used != dma->current_vertexptr) { dma->current_used = dma->current_vertexptr; rmesa->vtbl.swtcl_flush(ctx, current_offset); } - radeonReleaseDmaRegion(rmesa); rmesa->swtcl.numverts = 0; } } @@ -2554,7 +2552,7 @@ rcommonAllocDmaLowVerts( radeonContextPtr rmesa, int nverts, int vsize ) void *head; if (!rmesa->dma.current || rmesa->dma.current_vertexptr + bytes > rmesa->dma.current->size) { - radeonRefillCurrentDmaRegion( rmesa, bytes); + radeonRefillCurrentDmaRegion(rmesa, bytes); } if (!rmesa->dma.flush) { -- 2.7.4