From 88c4f5d0a54baf7711cf030e3c1d5eca63560716 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 19 Jul 2014 09:27:46 -0400 Subject: gallium: add new PATCHES primitive type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ilia Mirkin Reviewed-by: Roland Scheidegger Signed-off-by: Marek Olšák --- src/gallium/auxiliary/tgsi/tgsi_strings.c | 3 ++- 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 /** -- cgit v1.2.3