From: Erik Faye-Lund Date: Mon, 8 Apr 2019 12:59:39 +0000 (+0200) Subject: nir: initialize uses_discard to false X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d6d2ca9f1207d3fbb58b88a777417e2cc0a05fc;p=mesa.git 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 Reviewed-by: Kenneth Graunke --- 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);