Lines Matching defs:prim
154 struct _mesa_prim *prim = &node->cold->prims[node->cold->prim_count - 1];
157 if (prim->end || !prim->count || !sz)
160 const fi_type *src = src_buffer + prim->start * sz;
162 save->copied.buffer = malloc(sizeof(fi_type) * sz * prim->count);
164 unsigned r = vbo_copy_vertices(ctx, prim->mode, prim->start, &prim->count,
165 prim->begin, sz, true, save->copied.buffer, src);
202 * previous prim.
223 /* We've found a prim that just extend the previous one. Tack it
250 struct _mesa_prim *prim = &node->cold->prims[node->cold->prim_count - 1];
252 assert(prim->mode == GL_LINE_LOOP);
254 if (prim->end) {
260 const fi_type *src = save->vertex_store->buffer_in_ram + prim->start * sz;
262 fi_type *dst = save->vertex_store->buffer_in_ram + (prim->start + prim->count) * sz;
266 prim->count++;
271 if (!prim->begin) {
275 prim->start++;
276 prim->count--;
279 prim->mode = GL_LINE_STRIP;
698 * prim mode is GL_LINES (so merge_prims is true) or if the next
1768 * then emitting an indexed prim at runtime.