diff options
Diffstat (limited to 'src/glsl/nir/nir_lower_io.c')
-rw-r--r-- | src/glsl/nir/nir_lower_io.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c index af87c13e17a..c35058c14dc 100644 --- a/src/glsl/nir/nir_lower_io.c +++ b/src/glsl/nir/nir_lower_io.c @@ -238,13 +238,8 @@ nir_lower_io_block(nir_block *block, void *void_state) load->dest.is_ssa = true; nir_ssa_def_init(&load->instr, &load->dest.ssa, intrin->num_components, NULL); - - nir_src new_src = { - .is_ssa = true, - .ssa = &load->dest.ssa, - }; - - nir_ssa_def_rewrite_uses(&intrin->dest.ssa, new_src, + nir_ssa_def_rewrite_uses(&intrin->dest.ssa, + nir_src_for_ssa(&load->dest.ssa), state->mem_ctx); } else { load->dest = nir_dest_copy(intrin->dest, state->mem_ctx); |