diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-07-12 21:37:45 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-05-16 14:51:22 +0200 |
commit | 5b45cbe7e2bcf1709ab1fcc50dfc877b3e43bcae (patch) | |
tree | cd94a6837186f27dce81dcd25e5c09b9d3aa54c7 /src | |
parent | 2420ee497a14ca36ea05b275ea74e5c3a4432a59 (diff) | |
download | external_mesa3d-5b45cbe7e2bcf1709ab1fcc50dfc877b3e43bcae.zip external_mesa3d-5b45cbe7e2bcf1709ab1fcc50dfc877b3e43bcae.tar.gz external_mesa3d-5b45cbe7e2bcf1709ab1fcc50dfc877b3e43bcae.tar.bz2 |
tgsi/scan: allow scanning tessellation shaders
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index e6011d2..3f94bab 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); |