zink: remove ADJACENCY prim types from primconvert path
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Oct 2020 14:39:24 +0000 (10:39 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 16 Oct 2020 13:15:28 +0000 (09:15 -0400)
we can (and do) actually handle these natively

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7139>

src/gallium/drivers/zink/zink_draw.c

index aa91db9..858718e 100644 (file)
@@ -221,7 +221,9 @@ zink_draw_vbo(struct pipe_context *pctx,
        util_draw_vbo_without_prim_restart(pctx, dinfo);
        return;
    }
-   if (dinfo->mode >= PIPE_PRIM_QUADS ||
+   if (dinfo->mode == PIPE_PRIM_QUADS ||
+       dinfo->mode == PIPE_PRIM_QUAD_STRIP ||
+       dinfo->mode == PIPE_PRIM_POLYGON ||
        dinfo->mode == PIPE_PRIM_LINE_LOOP) {
       if (!u_trim_pipe_prim(dinfo->mode, (unsigned *)&dinfo->count))
          return;