radeonsi/nir: add some missing tcs bits to the nir scan pass

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Timothy Arceri 2018-01-10 13:52:29 +11:00
parent 7898eb9a60
commit b282207c32
1 changed files with 14 additions and 0 deletions

View File

@ -399,6 +399,20 @@ void si_nir_scan_shader(const struct nir_shader *nir,
info->writes_position = true;
break;
}
if (nir->info.stage == MESA_SHADER_TESS_CTRL) {
switch (semantic_name) {
case TGSI_SEMANTIC_PATCH:
info->reads_perpatch_outputs = true;
break;
case TGSI_SEMANTIC_TESSINNER:
case TGSI_SEMANTIC_TESSOUTER:
info->reads_tessfactor_outputs = true;
break;
default:
info->reads_pervertex_outputs = true;
}
}
}
info->num_outputs = num_outputs;