zink: handle more draw modes
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 7 Jul 2020 19:46:04 +0000 (15:46 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 Aug 2020 14:52:26 +0000 (14:52 +0000)
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6269>

src/gallium/drivers/zink/zink_program.c

index 7847f1f5589f10cad04ee6c0d7e4b689a5176bed..0bcaa4a03e797450a76b9f0976bbef1683bb127c 100644 (file)
@@ -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_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");
    }
    default:
       unreachable("unexpected enum pipe_prim_type");
    }