nir: initialize uses_discard to false
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 8 Apr 2019 12:59:39 +0000 (14:59 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 4 Oct 2019 14:55:40 +0000 (14:55 +0000)
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@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_gather_info.c

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