The unfilled index translator/generator functions should only be
called when the primitive mode is one of the triangle types.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
#include "u_indices.h"
#include "u_indices_priv.h"
+#include "util/u_prim.h"
static void translate_ubyte_ushort( const void *in,
unsigned in_idx;
unsigned out_idx;
+ assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES);
+
u_unfilled_init();
in_idx = in_size_idx(in_index_size);
{
unsigned out_idx;
+ assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES);
+
u_unfilled_init();
*out_index_size = ((start + nr) > 0xfffe) ? 4 : 2;