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:
parent
7898eb9a60
commit
b282207c32
|
@ -399,6 +399,20 @@ void si_nir_scan_shader(const struct nir_shader *nir,
|
||||||
info->writes_position = true;
|
info->writes_position = true;
|
||||||
break;
|
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;
|
info->num_outputs = num_outputs;
|
||||||
|
|
Loading…
Reference in New Issue