From: Aapo Tahkola Date: Thu, 17 Feb 2005 18:16:46 +0000 (+0000) Subject: Switching to start_index32_packet. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78152f85e7c1330d6038752381b9a7f2f732ce62;p=mesa.git Switching to start_index32_packet. --- diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index d26d4c00c90..71a060db4d1 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -577,6 +577,7 @@ static void r300_render_vb_primitive(r300ContextPtr rmesa, LOCAL_VARS TNLcontext *tnl = TNL_CONTEXT(ctx); struct vertex_buffer *VB = &tnl->vb; + int i; type=r300_get_primitive_type(rmesa, ctx, prim); num_verts=r300_get_num_verts(rmesa, ctx, end-start, prim); @@ -587,11 +588,16 @@ static void r300_render_vb_primitive(r300ContextPtr rmesa, unsigned long elt_count; WARN_ONCE("Rendering with elts\n"); - +#if 1 + start_index32_packet(num_verts, type); + for(i=0; i < num_verts; i++) + e32(rmesa->state.Elts[start+i]); /* start ? */ +#else elt_count=get_num_elts(num_verts); //emit_elts(ctx, rmesa->state.Elts, VB->Count, get_num_elts(VB->Count)); emit_elts(ctx, rmesa->state.Elts+start, num_verts, elt_count, get_align(elt_count)); fire_EB(PASS_PREFIX rsp->gartTextures.handle/*rmesa->state.elt_ao.aos_offset*/, elt_count, type); +#endif }else fire_AOS(PASS_PREFIX num_verts, type); }