From: Dave Airlie Date: Mon, 11 Jan 2010 03:21:47 +0000 (+1000) Subject: radeon: fix prediction for r100 inline vert/elt emits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42f2880ffd0b847df7cb56b7f7f0747287e0b08f;p=mesa.git radeon: fix prediction for r100 inline vert/elt emits. On r100 we emit the indices inline so we need to account for that in the emission size. --- diff --git a/src/mesa/drivers/dri/radeon/radeon_tcl.c b/src/mesa/drivers/dri/radeon/radeon_tcl.c index b334ea05e5b..cd02bfbcf5d 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tcl.c +++ b/src/mesa/drivers/dri/radeon/radeon_tcl.c @@ -412,6 +412,7 @@ static GLuint radeonEnsureEmitSize( GLcontext * ctx , GLuint inputs ) space_required += vbuf; else space_required += index + elts; + space_required += VB->Primitive[i].count * 3; space_required += AOS_BUFSZ(nr_aos); } space_required += SCISSOR_BUFSZ;