r200: Make swtcl use state size prediction for flush.
authorPauli Nieminen <suokkos@gmail.com>
Tue, 11 Aug 2009 22:40:17 +0000 (01:40 +0300)
committerPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 16:12:30 +0000 (19:12 +0300)
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
src/mesa/drivers/dri/r200/r200_swtcl.c

index 1b2389114088fea77f8d9b2a651d0cedcfe9cb3d..8dd2e69d33d698658afaffe566081db133b885ee 100644 (file)
@@ -269,7 +269,7 @@ void r200_swtcl_flush(GLcontext *ctx, uint32_t current_offset)
 {
    r200ContextPtr rmesa = R200_CONTEXT(ctx);
    rcommonEnsureCmdBufSpace(&rmesa->radeon,
-                           rmesa->radeon.hw.max_state_size + (12*sizeof(int)),
+                           radeonCountEmitSize(&rmesa->radeon) + (12*sizeof(int)),
                            __FUNCTION__);