zink: use primconvert to get rid of 8-bit indices
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 16 Jul 2019 13:18:53 +0000 (15:18 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:47 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_context.c

index 03f5d1b6c9b74d2d11b65e73ee12699e032cfb4d..cd4d61ae96936f398b9317e371b1c2236189ed9f 100644 (file)
@@ -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;