From: Ilia Mirkin Date: Sat, 19 Jul 2014 13:27:46 +0000 (-0400) Subject: gallium: add new PATCHES primitive type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88c4f5d0a54baf7711cf030e3c1d5eca63560716;p=mesa.git gallium: add new PATCHES primitive type Signed-off-by: Ilia Mirkin Reviewed-by: Roland Scheidegger Signed-off-by: Marek Olšák --- 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 /**