From 5f43e074d4a4e74b1238a5687da5d38e53ad4596 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 12 Nov 2015 21:52:37 -0800 Subject: [PATCH] nir/vars_to_ssa: Delete dead output set code This was a remnant of an early attempt to handle output reads in vars_to_ssa. That attempt was abandon a long time ago but these few lines were aparently left in the pass and managed to evade review. Reviewed-by: Connor Abbott --- src/glsl/nir/nir_lower_vars_to_ssa.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/glsl/nir/nir_lower_vars_to_ssa.c b/src/glsl/nir/nir_lower_vars_to_ssa.c index df24510b3a5..e670dbdc7e7 100644 --- a/src/glsl/nir/nir_lower_vars_to_ssa.c +++ b/src/glsl/nir/nir_lower_vars_to_ssa.c @@ -879,10 +879,6 @@ nir_lower_vars_to_ssa_impl(nir_function_impl *impl) state.add_to_direct_deref_nodes = true; nir_foreach_block(impl, register_variable_uses_block, &state); - struct set *outputs = _mesa_set_create(state.dead_ctx, - _mesa_hash_pointer, - _mesa_key_pointer_equal); - bool progress = false; nir_metadata_require(impl, nir_metadata_block_index); @@ -916,9 +912,6 @@ nir_lower_vars_to_ssa_impl(nir_function_impl *impl) def_stack_push(node, &load->def, &state); } - if (deref->var->data.mode == nir_var_shader_out) - _mesa_set_add(outputs, node); - foreach_deref_node_match(deref, lower_copies_to_load_store, &state); } -- 2.30.2