Lines Matching refs:prim
46 const struct _mesa_prim *prim; member
115 struct _mesa_prim *prim = &split->dstprim[split->dstprim_nr++]; in next_outprim() local
116 memset(prim, 0, sizeof(*prim)); in next_outprim()
117 return prim; in next_outprim()
122 const struct _mesa_prim *prim) in update_index_bounds() argument
124 split->min_index = MIN2(split->min_index, prim->start); in update_index_bounds()
125 split->max_index = MAX2(split->max_index, prim->start + prim->count - 1); in update_index_bounds()
133 const struct _mesa_prim *prim) in get_max_vertices() argument
135 if ((prim->start > split->min_index && in get_max_vertices()
136 prim->start - split->min_index >= split->limit) || in get_max_vertices()
137 (prim->start < split->max_index && in get_max_vertices()
138 split->max_index - prim->start >= split->limit)) in get_max_vertices()
142 return MIN2(split->min_index, prim->start) + split->limit - prim->start; in get_max_vertices()
153 const struct _mesa_prim *prim = &split->prim[i]; in split_prims() local
155 GLboolean split_inplace = split_prim_inplace(prim->mode, &first, &incr); in split_prims()
156 GLuint available = get_max_vertices(split, prim); in split_prims()
157 GLuint count = prim->count - (prim->count - first) % incr; in split_prims()
159 if (prim->count < first) in split_prims()
165 available = get_max_vertices(split, prim); in split_prims()
171 *outprim = *prim; in split_prims()
184 outprim->mode = prim->mode; in split_prims()
185 outprim->begin = (j == 0 && prim->begin); in split_prims()
186 outprim->end = (nr == remaining && prim->end); in split_prims()
187 outprim->start = prim->start + j; in split_prims()
189 outprim->num_instances = prim->num_instances; in split_prims()
190 outprim->base_instance = prim->base_instance; in split_prims()
204 available = get_max_vertices(split, prim); in split_prims()
223 elts[j] = prim->start + j; in split_prims()
230 tmpprim = *prim; in split_prims()
253 prim, 1, in split_prims()
266 const struct _mesa_prim *prim, in vbo_split_inplace() argument
280 split.prim = prim; in vbo_split_inplace()