From 8575295c17e73723f9defe3741ac923cae40b2a2 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 16 Jul 2019 15:18:53 +0200 Subject: [PATCH] zink: use primconvert to get rid of 8-bit indices Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2