summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-07-16 15:18:53 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:47 +0000
commit8575295c17e73723f9defe3741ac923cae40b2a2 (patch)
tree6b02239a7e1839cb5574daabb393de37ca6276f2 /src
parent2942becfe96224fd770d574e552430204329c87e (diff)
zink: use primconvert to get rid of 8-bit indices
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/zink/zink_context.c3
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;