From 2962f88189c46e0bfe3fc33a1d46be9409cb9c10 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 28 May 2005 22:56:16 +0000 Subject: Add a missing EnsureCmdBufSpace, matching r200. --- src/mesa/drivers/dri/radeon/radeon_swtcl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/radeon/radeon_swtcl.c b/src/mesa/drivers/dri/radeon/radeon_swtcl.c index c71414ec587..4f2198ac5b5 100644 --- a/src/mesa/drivers/dri/radeon/radeon_swtcl.c +++ b/src/mesa/drivers/dri/radeon/radeon_swtcl.c @@ -382,6 +382,7 @@ static void flush_last_swtcl_prim( radeonContextPtr rmesa ) if (rmesa->dma.current.start != rmesa->dma.current.ptr) { radeonEnsureCmdBufSpace( rmesa, VERT_AOS_BUFSZ + rmesa->hw.max_state_size + VBUF_BUFSZ ); + radeonEmitVertexAOS( rmesa, rmesa->swtcl.vertex_size, current_offset); @@ -543,6 +544,9 @@ static void *radeon_alloc_elts( radeonContextPtr rmesa, int nr ) rmesa->dma.flush( rmesa ); } + radeonEnsureCmdBufSpace( rmesa, VERT_AOS_BUFSZ + + rmesa->hw.max_state_size + ELTS_BUFSZ(nr) ); + radeonEmitVertexAOS( rmesa, rmesa->swtcl.vertex_size, (rmesa->radeonScreen->gart_buffer_offset + -- cgit v1.2.3