radeon: fix prediction for r100 inline vert/elt emits.
authorDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2010 03:21:47 +0000 (13:21 +1000)
committerDave Airlie <airlied@itt42.(none)>
Mon, 11 Jan 2010 03:27:20 +0000 (13:27 +1000)
On r100 we emit the indices inline so we need to account
for that in the emission size.

src/mesa/drivers/dri/radeon/radeon_tcl.c

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