From b282207c323d32deb23037463ac9d6886f15f6cf Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 10 Jan 2018 13:52:29 +1100 Subject: radeonsi/nir: add some missing tcs bits to the nir scan pass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader_nir.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- cgit v1.2.3