From: Eric Anholt Date: Sat, 28 May 2005 22:56:16 +0000 (+0000) Subject: Add a missing EnsureCmdBufSpace, matching r200. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2962f88189c46e0bfe3fc33a1d46be9409cb9c10;p=mesa.git Add a missing EnsureCmdBufSpace, matching r200. --- 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 +