diff options
author | Jason Ekstrand <[email protected]> | 2015-09-09 13:24:35 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-11 09:21:20 -0700 |
commit | a4aa25be1e0a27b1a6a6b0bcf576beb9dfe1ea7a (patch) | |
tree | 30cefc1dcba792fba83755d8149fff8182a0c7a8 /src/glsl/nir/nir_from_ssa.c | |
parent | 8c8fc5f8336c8c79e5890265ae6c03271aa94075 (diff) |
nir: Remove the mem_ctx parameter from ssa_def_rewrite_uses
Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_from_ssa.c')
-rw-r--r-- | src/glsl/nir/nir_from_ssa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c index d6569d8994a..084f43da87c 100644 --- a/src/glsl/nir/nir_from_ssa.c +++ b/src/glsl/nir/nir_from_ssa.c @@ -359,8 +359,7 @@ isolate_phi_nodes_block(nir_block *block, void *void_state) exec_list_push_tail(&block_pcopy->entries, &entry->node); nir_ssa_def_rewrite_uses(&phi->dest.ssa, - nir_src_for_ssa(&entry->dest.ssa), - state->mem_ctx); + nir_src_for_ssa(&entry->dest.ssa)); nir_instr_rewrite_src(&block_pcopy->instr, &entry->src, nir_src_for_ssa(&phi->dest.ssa)); @@ -493,7 +492,7 @@ rewrite_ssa_def(nir_ssa_def *def, void *void_state) reg->num_array_elems = 0; } - nir_ssa_def_rewrite_uses(def, nir_src_for_reg(reg), state->mem_ctx); + nir_ssa_def_rewrite_uses(def, nir_src_for_reg(reg)); assert(list_empty(&def->uses) && list_empty(&def->if_uses)); if (def->parent_instr->type == nir_instr_type_ssa_undef) { |