diff options
author | Eric Anholt <[email protected]> | 2005-05-28 22:56:16 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2005-05-28 22:56:16 +0000 |
commit | 2962f88189c46e0bfe3fc33a1d46be9409cb9c10 (patch) | |
tree | da33c9c0123a064fa5232653ad9064e50b6f03b8 /src/mesa/drivers | |
parent | f054fa85d8e9f5eadf4fe845764905e102802e88 (diff) |
Add a missing EnsureCmdBufSpace, matching r200.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_swtcl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 + |