summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2009-08-28 02:04:00 +0300
committerPauli Nieminen <suokkos@gmail.com>2009-08-28 02:05:08 +0300
commit812ccacabcc6af300cf476d7f82ecb75d4982cd6 (patch)
treea9d0e0aca80c0c57a0db759eb5c783eb9e63a967
parente363ec1d08858735c6f2b1454c43f39c96d5bab6 (diff)
r300: Fix emit prediction to account scissor emitting correctly.
-rw-r--r--src/mesa/drivers/dri/r300/r300_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c
index 56680516c8..2e475b1adf 100644
--- a/src/mesa/drivers/dri/r300/r300_draw.c
+++ b/src/mesa/drivers/dri/r300/r300_draw.c
@@ -580,7 +580,7 @@ static GLuint r300PredictTryDrawPrimsSize(GLcontext *ctx, GLuint nr_prims)
dwords = 2*CACHE_FLUSH_BUFSZ;
dwords += PRE_EMIT_STATE_BUFSZ;
dwords += (AOS_BUFSZ(vbuf->num_attribs)
- + SCISSORS_BUFSZ
+ + SCISSORS_BUFSZ*2
+ FIREAOS_BUFSZ )*nr_prims;
state_size = radeonCountStateEmitSize(&r300->radeon);