From: Mike Blumenkrantz Date: Tue, 7 Jul 2020 19:46:04 +0000 (-0400) Subject: zink: handle more draw modes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61042b1bdb199f98dd34085ed29a8c492ed9b2a3;p=mesa.git zink: handle more draw modes Reviewed-by: Erik Faye-Lund Part-of: --- diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index 7847f1f5589..0bcaa4a03e7 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -293,6 +293,18 @@ primitive_topology(enum pipe_prim_type mode) case PIPE_PRIM_TRIANGLE_FAN: return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN; + case PIPE_PRIM_LINE_STRIP_ADJACENCY: + return VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY; + + case PIPE_PRIM_LINES_ADJACENCY: + return VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY; + + case PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY: + return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY; + + case PIPE_PRIM_TRIANGLES_ADJACENCY: + return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY; + default: unreachable("unexpected enum pipe_prim_type"); }