static void
inject_primid(struct draw_assembler *asmblr,
- unsigned idx,
- unsigned primid)
+ unsigned idx,
+ unsigned primid)
{
int slot = asmblr->primid_slot;
char *input = (char*)asmblr->input_verts->verts;
{
struct draw_assembler *asmblr = draw->ia;
unsigned start, i;
- unsigned assembled_prim = u_assembled_prim(input_prims->prim);
+ unsigned assembled_prim = u_reduced_prim(input_prims->prim);
unsigned max_primitives = u_decomposed_prims_for_vertices(
input_prims->prim, input_prims->count);
unsigned max_verts = u_vertices_per_prim(assembled_prim) * max_primitives;
output_prims->linear = TRUE;
output_prims->elts = NULL;
output_prims->start = 0;
- output_prims->prim = u_assembled_prim(input_prims->prim);
+ output_prims->prim = assembled_prim;
output_prims->flags = 0x0;
output_prims->primitive_lengths = MALLOC(sizeof(unsigned));
output_prims->primitive_lengths[0] = 0;