Mesa (master): nir: initialize uses_discard to false

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


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Apr  8 14:59:39 2019 +0200

nir: initialize uses_discard to false

This matches what we do for uses_sample_qualifier, and what we
do in ir_set_program_inouts.cpp as well.

Reviewed-by: Eric Anholt <eric at anholt.net>
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 1e251149872..09147bd5a50 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -381,6 +381,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;
    }
 
    void *dead_ctx = ralloc_context(NULL);




More information about the mesa-commit mailing list