diff options
author | Eric Anholt <[email protected]> | 2020-04-20 16:43:25 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-14 00:10:43 +0000 |
commit | e0a4d1c4e53f770d1e4f80f112e3d36b9f09a7c4 (patch) | |
tree | 5dd4c233e5e5decd512043823d45afdb9100f512 /src/freedreno | |
parent | d2a0cde390001e70e7f9696f4ac7cbca9616cbdf (diff) |
freedreno/ir3: Clean up a silly nir_src_for_ssa(src.ssa).
Just copy the src through.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4858>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_nir_lower_io_offsets.c | 2 |
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); |