diff options
author | Ilia Mirkin <[email protected]> | 2014-07-19 09:27:46 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-05-16 14:48:54 +0200 |
commit | 88c4f5d0a54baf7711cf030e3c1d5eca63560716 (patch) | |
tree | 2c44902aadc183066ac7ca60ec0b9f65d66aac5d | |
parent | 398b0b3e36603188ada03f2df5e2c81b3e8b62a2 (diff) |
gallium: add new PATCHES primitive type
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_strings.c | 3 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index e4e5b90d5d9..8938cf0b377 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -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] = diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 0938a5f688c..d116aa5b8f8 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -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 /** |