summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-10-03 15:45:41 -0400
committerErik Faye-Lund <[email protected]>2019-10-04 14:55:40 +0000
commit49b32233a0b714a6293584864fc609f55cc5f7a4 (patch)
tree5b3006df40935f2243bfb988d861617263bbf8b2
parent1d6d2ca9f1207d3fbb58b88a777417e2cc0a05fc (diff)
nir: initialize needs_helper_invocations as well
Similar to the previous commit, we should also initialize needs_helper_invocations here. Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/compiler/nir/nir_gather_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index 09147bd5a50..3bf0d448356 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -382,6 +382,7 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
if (shader->info.stage == MESA_SHADER_FRAGMENT) {
shader->info.fs.uses_sample_qualifier = false;
shader->info.fs.uses_discard = false;
+ shader->info.fs.needs_helper_invocations = false;
}
void *dead_ctx = ralloc_context(NULL);