nir: Copy semantics to nir_intrinsic_load_fs_input_interp_deltas
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2020 22:12:36 +0000 (15:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 16:43:19 +0000 (16:43 +0000)
commit2fcfcca842a6c3ca77f38791da88b185839f064a
tree2f51cbfe83b1f5cea62f4751cf5fd3dc7b42bd61
parent3cda33360e7daada224b66eabbe0d497fcabf9af
nir: Copy semantics to nir_intrinsic_load_fs_input_interp_deltas

When using nir_lower_interpolation, we need to propagate the IO
semantics from the load_interpolated_input to the new
load_fs_input_interp_deltas intrinsics.  nir_lower_io assumes
they will be filled out.

This fixes assertions in most tests on iris since commit
01ab308edc78cda777bc66f2e8110fbd8c21aa18, where nir_lower_io
started reading this field.

Fixes: 01ab308edc7 ("nir: update IO semantics in nir_io_add_const_offset_to_base")
Fixes: 502abfce7f5 ("nir: save IO semantics in lowered IO intrinsics")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6450>
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_interpolation.c