Mesa (master): nir: initialize needs_helper_invocations as well

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 4 15:20:49 UTC 2019


Module: Mesa
Branch: master
Commit: 49b32233a0b714a6293584864fc609f55cc5f7a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=49b32233a0b714a6293584864fc609f55cc5f7a4

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Oct  3 15:45:41 2019 -0400

nir: initialize needs_helper_invocations as well

Similar to the previous commit, we should also initialize
needs_helper_invocations here.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/compiler/nir/nir_gather_info.c | 1 +
 1 file changed, 1 insertion(+)

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);




More information about the mesa-commit mailing list