summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-18 02:21:47 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-05-26 11:46:28 +0200
commitc1266f28d6af7788e19634f0d36257e78d1139be (patch)
treecc061f57f1b76fe03233a3000ae5a379590f5481
parent0d84b6cf84971f3378bb95c85f7d39e0c6680b8f (diff)
downloadexternal_mesa3d-c1266f28d6af7788e19634f0d36257e78d1139be.zip
external_mesa3d-c1266f28d6af7788e19634f0d36257e78d1139be.tar.gz
external_mesa3d-c1266f28d6af7788e19634f0d36257e78d1139be.tar.bz2
tgsi/text: enable parsing tessellation shaders
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index a9734db..a6675c5 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -297,6 +297,10 @@ static boolean parse_header( struct translate_ctx *ctx )
processor = TGSI_PROCESSOR_VERTEX;
else if (str_match_nocase_whole( &ctx->cur, "GEOM" ))
processor = TGSI_PROCESSOR_GEOMETRY;
+ else if (str_match_nocase_whole( &ctx->cur, "TESS_CTRL" ))
+ processor = TGSI_PROCESSOR_TESS_CTRL;
+ else if (str_match_nocase_whole( &ctx->cur, "TESS_EVAL" ))
+ processor = TGSI_PROCESSOR_TESS_EVAL;
else if (str_match_nocase_whole( &ctx->cur, "COMP" ))
processor = TGSI_PROCESSOR_COMPUTE;
else {