diff options
author | Jason Ekstrand <[email protected]> | 2015-11-12 21:52:37 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-12 22:08:43 -0800 |
commit | 5f43e074d4a4e74b1238a5687da5d38e53ad4596 (patch) | |
tree | e8ad0d88e067497a9237f450b60cb7e324b3d599 /src/glsl/nir | |
parent | 226ba889a0f820b9f4b1132e379620d2688c96e7 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir_lower_vars_to_ssa.c | 7 |
1 files changed, 0 insertions, 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); } |