diff options
author | Erik Faye-Lund <[email protected]> | 2019-04-08 14:59:39 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-04 14:55:40 +0000 |
commit | 1d6d2ca9f1207d3fbb58b88a777417e2cc0a05fc (patch) | |
tree | a22bb4bc2349f3c4ed808347cc8ac1e630edf5f0 /src | |
parent | a87b0f51410932e03f43a0f5c8ad21a9099e57df (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_gather_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |