aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3_nir_lower_io_offsets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_nir_lower_io_offsets.c b/src/freedreno/ir3/ir3_nir_lower_io_offsets.c
index 456e331aba7..b2ee9bce9a3 100644
--- a/src/freedreno/ir3/ir3_nir_lower_io_offsets.c
+++ b/src/freedreno/ir3/ir3_nir_lower_io_offsets.c
@@ -277,7 +277,7 @@ lower_offset_for_ubo(nir_intrinsic_instr *intrinsic, nir_builder *b)
nir_intrinsic_instr_create(b->shader, nir_intrinsic_load_ubo_ir3);
debug_assert(intrinsic->dest.is_ssa);
- new_intrinsic->src[0] = nir_src_for_ssa(intrinsic->src[0].ssa);
+ new_intrinsic->src[0] = intrinsic->src[0];
nir_ssa_def *offset = intrinsic->src[1].ssa;
nir_ssa_def *new_offset = ir3_nir_try_propagate_bit_shift(b, offset, -4);