Lines Matching refs:prim
54 const struct _mesa_prim *prim; member
229 struct _mesa_prim *prim = ©->dstprim[copy->dstprim_nr]; in begin() local
231 prim->mode = mode; in begin()
232 prim->begin = begin_flag; in begin()
233 prim->num_instances = 1; in begin()
310 struct _mesa_prim *prim = ©->dstprim[copy->dstprim_nr]; in end() local
314 prim->end = end_flag; in end()
315 prim->count = copy->dstelt_nr - prim->start; in end()
330 const struct _mesa_prim *prim = ©->prim[i]; in replay_elts() local
331 const GLuint start = prim->start; in replay_elts()
334 switch (prim->mode) { in replay_elts()
341 while (j != prim->count) { in replay_elts()
342 begin(copy, GL_LINE_STRIP, prim->begin && j == 0); in replay_elts()
344 for (split = GL_FALSE; j != prim->count && !split; j++) in replay_elts()
347 if (j == prim->count) { in replay_elts()
352 if (prim->end) in replay_elts()
355 end(copy, prim->end); in replay_elts()
370 while (j != prim->count) { in replay_elts()
371 begin(copy, prim->mode, prim->begin && j == 0); in replay_elts()
379 for (; j != prim->count && !split; j++) in replay_elts()
382 end(copy, prim->end && j == prim->count); in replay_elts()
384 if (j != prim->count) { in replay_elts()
393 (void)split_prim_inplace(prim->mode, &first, &incr); in replay_elts()
396 while (j != prim->count) { in replay_elts()
398 begin(copy, prim->mode, prim->begin && j == 0); in replay_elts()
406 for (; j != prim->count && !split; ) in replay_elts()
410 end(copy, prim->end && j == prim->count); in replay_elts()
412 if (j != prim->count) { in replay_elts()
593 const struct _mesa_prim *prim, in vbo_split_copy() argument
609 if (prim[i].basevertex != prim[i + this_nr_prims].basevertex) in vbo_split_copy()
621 copy.prim = &prim[i]; in vbo_split_copy()