diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/zink/zink_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |