From: Erik Faye-Lund Date: Tue, 16 Jul 2019 13:18:53 +0000 (+0200) Subject: zink: use primconvert to get rid of 8-bit indices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8575295c17e73723f9defe3741ac923cae40b2a2;p=mesa.git zink: use primconvert to get rid of 8-bit indices Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 03f5d1b6c9b..cd4d61ae969 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -942,7 +942,8 @@ zink_draw_vbo(struct pipe_context *pctx, struct zink_rasterizer_state *rast_state = ctx->rast_state; if (dinfo->mode >= PIPE_PRIM_QUADS || - dinfo->mode == PIPE_PRIM_LINE_LOOP) { + dinfo->mode == PIPE_PRIM_LINE_LOOP || + dinfo->index_size == 1) { if (!u_trim_pipe_prim(dinfo->mode, (unsigned *)&dinfo->count)) return;