From: Timothy Arceri Date: Wed, 10 Jan 2018 02:52:29 +0000 (+1100) Subject: radeonsi/nir: add some missing tcs bits to the nir scan pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b282207c323d32deb23037463ac9d6886f15f6cf;p=mesa.git radeonsi/nir: add some missing tcs bits to the nir scan pass Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index d5b8f835b91..9a15271bb01 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -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;