diff options
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-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 + |