From e0a4d1c4e53f770d1e4f80f112e3d36b9f09a7c4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 20 Apr 2020 16:43:25 -0700 Subject: [PATCH] freedreno/ir3: Clean up a silly nir_src_for_ssa(src.ssa). Just copy the src through. Part-of: --- src/freedreno/ir3/ir3_nir_lower_io_offsets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2