diff --git a/src/gallium/auxiliary/indices/u_indices.c b/src/gallium/auxiliary/indices/u_indices.c index 95cf856077c..0a618bfe1f5 100644 --- a/src/gallium/auxiliary/indices/u_indices.c +++ b/src/gallium/auxiliary/indices/u_indices.c @@ -229,6 +229,48 @@ u_index_translator(unsigned hw_mask, return ret; } +unsigned +u_index_count_converted_indices(unsigned hw_mask, bool pv_matches, enum pipe_prim_type prim, unsigned nr) +{ + if ((hw_mask & (1< 0xfffe) ? 4 : 2; out_idx = out_size_idx(*out_index_size); *out_prim = u_index_prim_type_convert(hw_mask, prim); + *out_nr = u_index_count_converted_indices(hw_mask, in_pv == out_pv, prim, nr); if ((hw_mask & (1<