Lines Matching refs:prim
63 u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_matches)
65 if ((hw_mask & (1<<prim)) && pv_matches)
66 return prim;
68 switch (prim) {
110 * \param prim incoming PIPE_PRIM_x
123 enum pipe_prim_type prim,
148 if ((hw_mask & (1<<prim)) &&
158 *out_prim = prim;
163 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim];
164 *out_prim = u_index_prim_type_convert(hw_mask, prim, in_pv == out_pv);
165 *out_nr = u_index_count_converted_indices(hw_mask, in_pv == out_pv, prim, nr);
171 u_index_count_converted_indices(unsigned hw_mask, bool pv_matches, enum pipe_prim_type prim, unsigned nr)
173 if ((hw_mask & (1<<prim)) && pv_matches)
176 switch (prim) {
226 * \param prim the PIPE_PRIM_x that the user wants to draw
238 enum pipe_prim_type prim,
254 *out_prim = u_index_prim_type_convert(hw_mask, prim, in_pv == out_pv);
255 *out_nr = u_index_count_converted_indices(hw_mask, in_pv == out_pv, prim, nr);
257 if ((hw_mask & (1<<prim)) &&
263 *out_generate = generate[out_idx][in_pv][out_pv][prim];
264 return prim == PIPE_PRIM_LINE_LOOP ? U_GENERATE_ONE_OFF : U_GENERATE_REUSABLE;