ensure cmd buffer space
authorDave Airlie <airlied@nx6125b.(none)>
Thu, 21 Jun 2007 04:43:53 +0000 (14:43 +1000)
committerDave Airlie <airlied@nx6125b.(none)>
Thu, 21 Jun 2007 04:43:53 +0000 (14:43 +1000)
src/mesa/drivers/dri/r300/r300_swtcl.c

index ab85be37f03b6d6f5ba39daf441191407840c62a..dfa02f95232ab8c667d686fadc48321c5e3a193c 100644 (file)
@@ -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);