const char* message,
...)
{
+ va_list values;
+
GET_CURRENT_CONTEXT(ctx);
if (ctx) {
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
if (radeon->debug.indent_depth)
fprintf(stderr, "%s", radeon->debug.indent);
}
- va_list values;
va_start( values, message );
vfprintf(stderr, message, values);
va_end( values );
/* predict size for elements */
for (i = 0; i < VB->PrimitiveCount; ++i)
{
- if (!VB->Primitive[i].count)
- continue;
/* If primitive.count is less than MAX_CONVERSION_SIZE
rendering code may decide convert to elts.
In that case we have to make pessimistic prediction.
const GLuint elts = ELTS_BUFSZ(nr_aos);
const GLuint index = INDEX_BUFSZ;
const GLuint vbuf = VBUF_BUFSZ;
+ if (!VB->Primitive[i].count)
+ continue;
if ( (!VB->Elts && VB->Primitive[i].count >= MAX_CONVERSION_SIZE)
|| vbuf > index + elts)
space_required += vbuf;
struct vertex_buffer *VB = &tnl->vb;
GLuint inputs = VERT_BIT_POS | VERT_BIT_COLOR0;
GLuint i;
+ GLuint emit_end;
/* TODO: separate this from the swtnl pipeline
*/
}
radeonReleaseArrays( ctx, ~0 );
- GLuint emit_end = radeonEnsureEmitSize( ctx, inputs )
+ emit_end = radeonEnsureEmitSize( ctx, inputs )
+ rmesa->radeon.cmdbuf.cs->cdw;
radeonEmitArrays( ctx, inputs );