mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 05:40:42 +01:00
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>
This commit is contained in:
parent
2420ee497a
commit
5b45cbe7e2
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue