Lines Matching refs:prim
108 count_tessellated_primitives(const struct _mesa_prim *prim) in count_tessellated_primitives() argument
111 switch (prim->mode) { in count_tessellated_primitives()
113 num_primitives = prim->count; in count_tessellated_primitives()
116 num_primitives = prim->count >= 2 ? prim->count - 1 : 0; in count_tessellated_primitives()
119 num_primitives = prim->count >= 2 ? prim->count : 0; in count_tessellated_primitives()
122 num_primitives = prim->count / 2; in count_tessellated_primitives()
127 num_primitives = prim->count >= 3 ? prim->count - 2 : 0; in count_tessellated_primitives()
130 num_primitives = prim->count / 3; in count_tessellated_primitives()
133 num_primitives = prim->count >= 4 ? ((prim->count / 2) - 1) * 2 : 0; in count_tessellated_primitives()
136 num_primitives = (prim->count / 4) * 2; in count_tessellated_primitives()
143 return num_primitives * prim->num_instances; in count_tessellated_primitives()