summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorAapo Tahkola <[email protected]>2005-02-17 18:16:46 +0000
committerAapo Tahkola <[email protected]>2005-02-17 18:16:46 +0000
commit78152f85e7c1330d6038752381b9a7f2f732ce62 (patch)
treeb1b68021cc65ddf9f7c9dac7ec285856b9797bca /src/mesa/drivers/dri/r300
parent002a64cc48edea1dcd6f257c754dc1d2fcfe3e31 (diff)
Switching to start_index32_packet.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/r300_render.c8
1 files changed, 7 insertions, 1 deletions
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);
}