From 1d6d2ca9f1207d3fbb58b88a777417e2cc0a05fc Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 8 Apr 2019 14:59:39 +0200 Subject: [PATCH] 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 --- 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); -- 2.30.2