nir: initialize needs_helper_invocations as well
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 3 Oct 2019 19:45:41 +0000 (15:45 -0400)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 4 Oct 2019 14:55:40 +0000 (14:55 +0000)
Similar to the previous commit, we should also initialize
needs_helper_invocations here.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_gather_info.c

index 09147bd5a504ffc2ec412b573ebde08007c01f5c..3bf0d448356ef9077b4b6ba0edf2f9f6f20243a6 100644 (file)
@@ -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);