Lines Matching defs:primitive
48 * Decompose a primitive that is a loop, a strip, or a fan. Return the
49 * original primitive if it is already decomposed.
73 * Reduce a primitive to one of PIPE_PRIM_POINTS, PIPE_PRIM_LINES, and
94 * Re-assemble a primitive to remove its adjacency.
112 * Return the vertex count information for a primitive.
185 u_vertices_per_prim(enum pipe_prim_type primitive)
187 switch(primitive) {
216 debug_printf("Unrecognized geometry shader primitive");
231 u_decomposed_prims_for_vertices(enum pipe_prim_type primitive, int vertices)
233 switch (primitive) {
267 debug_printf("Invalid decomposition primitive!\n");
278 u_reduced_prims_for_vertices(enum pipe_prim_type primitive, int vertices)
280 switch (primitive) {
283 return u_decomposed_prims_for_vertices(primitive, vertices) * 2;
285 primitive = PIPE_PRIM_TRIANGLE_FAN;
288 return u_decomposed_prims_for_vertices(primitive, vertices);
353 * primitive type.
357 u_stream_outputs_for_vertices(enum pipe_prim_type primitive, unsigned nr)
360 u_trim_pipe_prim(primitive, &nr);
362 /* Polygons are special, since they are a single primitive with many
366 if (primitive == PIPE_PRIM_POLYGON)
370 unsigned prims = u_decomposed_prims_for_vertices(primitive, nr);
373 enum pipe_prim_type base = u_base_prim_type(primitive);