From: Dave Airlie Date: Thu, 21 Jun 2007 04:43:53 +0000 (+1000) Subject: ensure cmd buffer space X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3ef71166d032d1f77f0d83eaca76fbf612ac79c;p=mesa.git ensure cmd buffer space --- diff --git a/src/mesa/drivers/dri/r300/r300_swtcl.c b/src/mesa/drivers/dri/r300/r300_swtcl.c index ab85be37f03..dfa02f95232 100644 --- a/src/mesa/drivers/dri/r300/r300_swtcl.c +++ b/src/mesa/drivers/dri/r300/r300_swtcl.c @@ -384,6 +384,7 @@ static void flush_last_swtcl_prim( r300ContextPtr rmesa ) if (rmesa->dma.current.start != rmesa->dma.current.ptr) { + r300EnsureCmdBufSpace( rmesa, rmesa->hw.max_state_size + (8*sizeof(int)), __FUNCTION__); r300EmitVertexAOS( rmesa, rmesa->swtcl.vertex_size, current_offset);