From: Ilia Mirkin Date: Sun, 13 Jul 2014 01:37:45 +0000 (-0400) Subject: tgsi/scan: allow scanning tessellation shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b45cbe7e2bcf1709ab1fcc50dfc877b3e43bcae;p=mesa.git tgsi/scan: allow scanning tessellation shaders Signed-off-by: Ilia Mirkin Reviewed-by: Roland Scheidegger Signed-off-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index e6011d2d85a..3f94bab4496 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -74,6 +74,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens, assert(procType == TGSI_PROCESSOR_FRAGMENT || procType == TGSI_PROCESSOR_VERTEX || procType == TGSI_PROCESSOR_GEOMETRY || + procType == TGSI_PROCESSOR_TESSCTRL || + procType == TGSI_PROCESSOR_TESSEVAL || procType == TGSI_PROCESSOR_COMPUTE); info->processor = procType; @@ -236,7 +238,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens, info->num_outputs++; if (procType == TGSI_PROCESSOR_VERTEX || - procType == TGSI_PROCESSOR_GEOMETRY) { + procType == TGSI_PROCESSOR_GEOMETRY || + procType == TGSI_PROCESSOR_TESSCTRL || + procType == TGSI_PROCESSOR_TESSEVAL) { if (semName == TGSI_SEMANTIC_CLIPDIST) { info->num_written_clipdistance += util_bitcount(fulldecl->Declaration.UsageMask);