gallium: add new PATCHES primitive type
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 19 Jul 2014 13:27:46 +0000 (09:27 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 16 May 2015 12:48:54 +0000 (14:48 +0200)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/include/pipe/p_defines.h

index e4e5b90d5d9423c4148e08102d46746315e0c50f..8938cf0b377cc90a5b86f4df714ff77c34e6ce65 100644 (file)
@@ -168,7 +168,8 @@ const char *tgsi_primitive_names[PIPE_PRIM_MAX] =
    "LINES_ADJACENCY",
    "LINE_STRIP_ADJACENCY",
    "TRIANGLES_ADJACENCY",
-   "TRIANGLE_STRIP_ADJACENCY"
+   "TRIANGLE_STRIP_ADJACENCY",
+   "PATCHES",
 };
 
 const char *tgsi_fs_coord_origin_names[2] =
index 0938a5f688c35669749b7811c41d7dfc8ad30359..d116aa5b8f86d2609e0d74773391c376132f6921 100644 (file)
@@ -427,7 +427,8 @@ enum pipe_flush_flags
 #define PIPE_PRIM_LINE_STRIP_ADJACENCY     11
 #define PIPE_PRIM_TRIANGLES_ADJACENCY      12
 #define PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY 13
-#define PIPE_PRIM_MAX                      14
+#define PIPE_PRIM_PATCHES                  14
+#define PIPE_PRIM_MAX                      15
 
 
 /**